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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BuildManagerHost.cs
- ChtmlPageAdapter.cs
- InstanceHandle.cs
- SQLBytes.cs
- UIntPtr.cs
- UshortList2.cs
- OraclePermission.cs
- ZoneIdentityPermission.cs
- FormsAuthentication.cs
- UserPersonalizationStateInfo.cs
- XhtmlBasicLiteralTextAdapter.cs
- SwitchAttribute.cs
- CompilationSection.cs
- HttpResponseInternalWrapper.cs
- AssemblyCacheEntry.cs
- ChameleonKey.cs
- XsltLibrary.cs
- BinaryFormatter.cs
- ApplicationInfo.cs
- FileVersionInfo.cs
- UInt16.cs
- DoubleConverter.cs
- NativeActivityAbortContext.cs
- TextEditor.cs
- InstanceDataCollectionCollection.cs
- AddInServer.cs
- WsatConfiguration.cs
- Processor.cs
- NetworkInformationPermission.cs
- BitmapData.cs
- ActiveDocumentEvent.cs
- GacUtil.cs
- LinqDataSourceSelectEventArgs.cs
- ToolbarAUtomationPeer.cs
- HijriCalendar.cs
- MetadataPropertyCollection.cs
- SemaphoreSecurity.cs
- X509SecurityTokenAuthenticator.cs
- EDesignUtil.cs
- DbSetClause.cs
- StylusOverProperty.cs
- WeakRefEnumerator.cs
- CachedBitmap.cs
- ListViewItem.cs
- WebPartEditVerb.cs
- SoapParser.cs
- Size.cs
- TableHeaderCell.cs
- HtmlTextViewAdapter.cs
- DrawListViewItemEventArgs.cs
- CodeExporter.cs
- ImplicitInputBrush.cs
- AlignmentXValidation.cs
- XmlBinaryReader.cs
- shaper.cs
- OperandQuery.cs
- Context.cs
- xmlfixedPageInfo.cs
- QilGenerator.cs
- httpserverutility.cs
- DiscreteKeyFrames.cs
- XmlChildEnumerator.cs
- Stylus.cs
- RegexFCD.cs
- X509UI.cs
- DesignerActionUIStateChangeEventArgs.cs
- UnsafeNativeMethods.cs
- MulticastOption.cs
- ObjectItemCollection.cs
- HintTextMaxWidthConverter.cs
- RtfToXamlLexer.cs
- Config.cs
- webproxy.cs
- HttpException.cs
- DocumentEventArgs.cs
- SkipStoryboardToFill.cs
- MetabaseSettings.cs
- ImageMapEventArgs.cs
- LockRecoveryTask.cs
- Ref.cs
- QueryContinueDragEvent.cs
- SqlCommandSet.cs
- DataBinding.cs
- AuthenticationService.cs
- DocumentApplicationJournalEntry.cs
- FixedStringLookup.cs
- streamingZipPartStream.cs
- EntityDesignerUtils.cs
- ScrollPattern.cs
- EventWaitHandle.cs
- QilNode.cs
- BasicCellRelation.cs
- MissingMethodException.cs
- XmlTextReader.cs
- ButtonBase.cs
- OleAutBinder.cs
- LookupBindingPropertiesAttribute.cs
- DataServiceContext.cs
- ContainerAction.cs
- Delegate.cs