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
- SslStream.cs
- TripleDES.cs
- StateMachineHelpers.cs
- ComboBoxRenderer.cs
- EmptyImpersonationContext.cs
- _HelperAsyncResults.cs
- EmptyEnumerator.cs
- OdbcFactory.cs
- StylusPlugInCollection.cs
- ReadOnlyNameValueCollection.cs
- GraphicsState.cs
- DeferrableContentConverter.cs
- BoundColumn.cs
- GetWinFXPath.cs
- SrgsElementFactoryCompiler.cs
- EntityDataSourceColumn.cs
- ACE.cs
- InkSerializer.cs
- PerspectiveCamera.cs
- OracleBinary.cs
- MeasureData.cs
- EntityConnectionStringBuilder.cs
- StandardTransformFactory.cs
- AdapterUtil.cs
- GridView.cs
- PropertyMappingExceptionEventArgs.cs
- XmlSiteMapProvider.cs
- Vector3DCollectionConverter.cs
- AutomationPeer.cs
- ExceptionRoutedEventArgs.cs
- ErrorTableItemStyle.cs
- Roles.cs
- WizardForm.cs
- Encoder.cs
- HttpAsyncResult.cs
- LogArchiveSnapshot.cs
- GridViewRow.cs
- PathSegment.cs
- SettingsPropertyIsReadOnlyException.cs
- DataGridViewCellPaintingEventArgs.cs
- TrackingProfileCache.cs
- Set.cs
- IndexedGlyphRun.cs
- CollectionDataContract.cs
- GlobalProxySelection.cs
- AppearanceEditorPart.cs
- WebControlToolBoxItem.cs
- ThicknessKeyFrameCollection.cs
- AsymmetricSignatureFormatter.cs
- StorageEntityContainerMapping.cs
- SequentialWorkflowRootDesigner.cs
- DataGridViewElement.cs
- keycontainerpermission.cs
- Int32KeyFrameCollection.cs
- HostProtectionException.cs
- ListSourceHelper.cs
- ColorContext.cs
- CalendarAutoFormat.cs
- TabControlEvent.cs
- RevocationPoint.cs
- CompilerScopeManager.cs
- PerformanceCounterManager.cs
- ExpandCollapsePatternIdentifiers.cs
- XPathParser.cs
- MenuItem.cs
- RegexRunnerFactory.cs
- XmlTypeMapping.cs
- ObjectQueryProvider.cs
- PngBitmapEncoder.cs
- NestedContainer.cs
- TableLayoutPanel.cs
- GraphicsContext.cs
- PolicyDesigner.cs
- RuntimeConfigLKG.cs
- RichTextBox.cs
- AuthenticationService.cs
- FastEncoder.cs
- SharingService.cs
- CheckBoxList.cs
- Listbox.cs
- DataQuery.cs
- recordstate.cs
- OleDbWrapper.cs
- SmiRequestExecutor.cs
- EncodingTable.cs
- Label.cs
- CancelRequestedRecord.cs
- Events.cs
- GeneralTransform.cs
- OdbcConnectionOpen.cs
- DataGridItemEventArgs.cs
- Win32Native.cs
- CommandExpr.cs
- StringKeyFrameCollection.cs
- BitmapSource.cs
- ContainsRowNumberChecker.cs
- ApplicationManager.cs
- ResourceKey.cs
- StringCollection.cs
- followingsibling.cs