Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Internal.cs
- EntityFrameworkVersions.cs
- ControlDesignerState.cs
- WorkBatch.cs
- BaseTemplateParser.cs
- QueryResponse.cs
- IPGlobalProperties.cs
- DynamicValueConverter.cs
- DataSourceXmlTextReader.cs
- Vector3dCollection.cs
- BitmapEffectDrawingContent.cs
- SendKeys.cs
- CqlParserHelpers.cs
- UserUseLicenseDictionaryLoader.cs
- HtmlUtf8RawTextWriter.cs
- SqlNamer.cs
- WebPartChrome.cs
- SpellerError.cs
- CacheOutputQuery.cs
- RegexCode.cs
- CommandConverter.cs
- LicFileLicenseProvider.cs
- DelegateBodyWriter.cs
- Hash.cs
- StylusCaptureWithinProperty.cs
- DataGridViewHitTestInfo.cs
- TransformPatternIdentifiers.cs
- FontFamily.cs
- GlobalItem.cs
- Context.cs
- DbDataReader.cs
- MbpInfo.cs
- ObjectFullSpanRewriter.cs
- ProcessThreadCollection.cs
- SessionStateSection.cs
- PreviewPageInfo.cs
- TableLayoutSettings.cs
- KeyedHashAlgorithm.cs
- VersionedStream.cs
- mediaclock.cs
- FixedSOMPage.cs
- WithParamAction.cs
- SafeCertificateContext.cs
- TextBox.cs
- TimerElapsedEvenArgs.cs
- XamlStream.cs
- ServerIdentity.cs
- AsyncResult.cs
- PriorityQueue.cs
- Section.cs
- PointHitTestResult.cs
- OrCondition.cs
- DelayedRegex.cs
- RelationshipDetailsCollection.cs
- GroupBoxAutomationPeer.cs
- SuppressedPackageProperties.cs
- EndpointDiscoveryMetadata.cs
- Stopwatch.cs
- Metafile.cs
- DeflateStream.cs
- StyleCollection.cs
- InkCanvasFeedbackAdorner.cs
- XXXInfos.cs
- LockCookie.cs
- ProfileEventArgs.cs
- IisTraceListener.cs
- IPCCacheManager.cs
- AsyncInvokeOperation.cs
- FSWPathEditor.cs
- CommonDialog.cs
- ComplexPropertyEntry.cs
- ObjectContext.cs
- StandardToolWindows.cs
- Signature.cs
- EntityKey.cs
- XmlSerializerSection.cs
- SymmetricSecurityProtocol.cs
- _SslSessionsCache.cs
- GridViewEditEventArgs.cs
- MainMenu.cs
- DataRelationCollection.cs
- SiteMap.cs
- EntityDataSourceDesigner.cs
- ObjectDataSourceWizardForm.cs
- Clause.cs
- GeneralTransform3DTo2DTo3D.cs
- XmlConverter.cs
- GeneralTransform3DGroup.cs
- BufferedReadStream.cs
- DirectoryNotFoundException.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- SystemIPGlobalStatistics.cs
- AdornerDecorator.cs
- GroupBoxRenderer.cs
- ConnectionPoint.cs
- DataGridColumnHeaderAutomationPeer.cs
- WeakReferenceList.cs
- Operator.cs
- NetworkInterface.cs
- DetailsViewModeEventArgs.cs