Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Regex / System / Text / RegularExpressions / CompiledRegexRunner.cs / 1 / CompiledRegexRunner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Reflection.Emit; namespace System.Text.RegularExpressions { internal sealed class CompiledRegexRunner : RegexRunner { NoParamDelegate goMethod; FindFirstCharDelegate findFirstCharMethod; NoParamDelegate initTrackCountMethod; internal CompiledRegexRunner() {} internal void SetDelegates(NoParamDelegate go, FindFirstCharDelegate firstChar, NoParamDelegate trackCount) { goMethod = go; findFirstCharMethod = firstChar; initTrackCountMethod = trackCount; } protected override void Go() { goMethod(this); } protected override bool FindFirstChar() { return findFirstCharMethod(this); } protected override void InitTrackCount() { initTrackCountMethod(this); } } internal delegate void NoParamDelegate(RegexRunner r); internal delegate bool FindFirstCharDelegate(RegexRunner r); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Reflection.Emit; namespace System.Text.RegularExpressions { internal sealed class CompiledRegexRunner : RegexRunner { NoParamDelegate goMethod; FindFirstCharDelegate findFirstCharMethod; NoParamDelegate initTrackCountMethod; internal CompiledRegexRunner() {} internal void SetDelegates(NoParamDelegate go, FindFirstCharDelegate firstChar, NoParamDelegate trackCount) { goMethod = go; findFirstCharMethod = firstChar; initTrackCountMethod = trackCount; } protected override void Go() { goMethod(this); } protected override bool FindFirstChar() { return findFirstCharMethod(this); } protected override void InitTrackCount() { initTrackCountMethod(this); } } internal delegate void NoParamDelegate(RegexRunner r); internal delegate bool FindFirstCharDelegate(RegexRunner r); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlImage.cs
- documentsequencetextcontainer.cs
- BuildProvider.cs
- SelectionListComponentEditor.cs
- StringExpressionSet.cs
- ByteAnimation.cs
- GPPOINT.cs
- LabelExpression.cs
- TextBoxBase.cs
- StreamGeometryContext.cs
- PostBackOptions.cs
- ContainerControl.cs
- _TLSstream.cs
- CacheMode.cs
- StyleCollectionEditor.cs
- EntityDataSourceSelectedEventArgs.cs
- StrongTypingException.cs
- PatternMatcher.cs
- PrintDialog.cs
- UnsafeNativeMethodsCLR.cs
- ButtonBase.cs
- CheckPair.cs
- InputReport.cs
- GeneralTransform3DGroup.cs
- ObsoleteAttribute.cs
- ScriptResourceAttribute.cs
- WebPartConnectVerb.cs
- _ListenerRequestStream.cs
- ListDictionaryInternal.cs
- AutomationProperty.cs
- ObjectContextServiceProvider.cs
- Expr.cs
- TrackingRecord.cs
- AppAction.cs
- InputProviderSite.cs
- RtfControls.cs
- ButtonBaseAdapter.cs
- MetadataItemSerializer.cs
- StringDictionaryCodeDomSerializer.cs
- CfgParser.cs
- LookupNode.cs
- ApplicationSettingsBase.cs
- ListControl.cs
- GPRECTF.cs
- _NegoStream.cs
- GeneralTransformCollection.cs
- TextBreakpoint.cs
- DataServiceEntityAttribute.cs
- TransformerTypeCollection.cs
- cookiecollection.cs
- UdpChannelFactory.cs
- SchemaImporterExtensionElementCollection.cs
- ForceCopyBuildProvider.cs
- FilterException.cs
- LineGeometry.cs
- Ipv6Element.cs
- UpdateCommand.cs
- InputProviderSite.cs
- ToolStripDropDownMenu.cs
- CompositionAdorner.cs
- mda.cs
- ChangeTracker.cs
- Parameter.cs
- XPathBinder.cs
- ProjectionCamera.cs
- ThreadStartException.cs
- ObservableDictionary.cs
- ContextMarshalException.cs
- Utils.cs
- HtmlInputPassword.cs
- Form.cs
- NonParentingControl.cs
- ViewLoader.cs
- DSASignatureDeformatter.cs
- ElementUtil.cs
- CodeBinaryOperatorExpression.cs
- XPathSelectionIterator.cs
- DecimalKeyFrameCollection.cs
- UserThread.cs
- BasicExpandProvider.cs
- ObjectDisposedException.cs
- DiscardableAttribute.cs
- EventsTab.cs
- TextShapeableCharacters.cs
- ColorAnimation.cs
- securitycriticaldata.cs
- SmiRequestExecutor.cs
- ProgressBarRenderer.cs
- HeaderedContentControl.cs
- SolidColorBrush.cs
- TreeNodeStyleCollectionEditor.cs
- ArrayConverter.cs
- Utils.cs
- WebPartTransformerCollection.cs
- GridSplitter.cs
- ProtocolElement.cs
- ProcessInfo.cs
- DocComment.cs
- ReferenceCountedObject.cs
- CryptoStream.cs