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
- TrustLevelCollection.cs
- GlobalAllocSafeHandle.cs
- ScriptResourceInfo.cs
- glyphs.cs
- DataBoundControlAdapter.cs
- SqlUDTStorage.cs
- TemplateInstanceAttribute.cs
- OdbcConnectionStringbuilder.cs
- externdll.cs
- PostBackTrigger.cs
- Pen.cs
- WebPartTransformerAttribute.cs
- SqlNodeTypeOperators.cs
- StyleCollectionEditor.cs
- CompositeActivityTypeDescriptorProvider.cs
- StandardToolWindows.cs
- ProcessThread.cs
- ProfileParameter.cs
- DoubleIndependentAnimationStorage.cs
- ConfigurationManagerInternalFactory.cs
- Int32Rect.cs
- DataGridViewColumnConverter.cs
- SettingsAttributes.cs
- Vector3DAnimation.cs
- DeferredElementTreeState.cs
- IsolatedStorageException.cs
- AssemblyInfo.cs
- XmlStringTable.cs
- Object.cs
- TabletCollection.cs
- SoapFault.cs
- ChannelFactoryRefCache.cs
- WebPartTracker.cs
- Point3DAnimationUsingKeyFrames.cs
- CharacterHit.cs
- COM2EnumConverter.cs
- CodeBinaryOperatorExpression.cs
- Processor.cs
- TreeNodeCollectionEditor.cs
- MenuItem.cs
- PropertyChangingEventArgs.cs
- DataGrid.cs
- CodeActivityContext.cs
- XmlParserContext.cs
- RuntimeCompatibilityAttribute.cs
- DependsOnAttribute.cs
- RadioButton.cs
- ConsumerConnectionPointCollection.cs
- CultureMapper.cs
- SafeNativeMethodsOther.cs
- UInt16.cs
- AnonymousIdentificationModule.cs
- ListenerPerfCounters.cs
- URLIdentityPermission.cs
- PropVariant.cs
- InheritanceContextHelper.cs
- MetadataCacheItem.cs
- ComplusTypeValidator.cs
- FileUtil.cs
- mactripleDES.cs
- JsonReaderWriterFactory.cs
- RuntimeConfigLKG.cs
- WebPartVerbCollection.cs
- DataSetMappper.cs
- TemplateInstanceAttribute.cs
- ContextStaticAttribute.cs
- ParseElement.cs
- QuotedPrintableStream.cs
- Sql8ExpressionRewriter.cs
- BridgeDataReader.cs
- AudienceUriMode.cs
- ObjectListShowCommandsEventArgs.cs
- Events.cs
- HitTestWithGeometryDrawingContextWalker.cs
- mediaeventargs.cs
- OutputCacheProfile.cs
- PermissionRequestEvidence.cs
- SQLInt32Storage.cs
- _NTAuthentication.cs
- VerificationException.cs
- PersonalizationEntry.cs
- X509ScopedServiceCertificateElementCollection.cs
- DataKeyArray.cs
- RegexWorker.cs
- DocumentCollection.cs
- ServiceObjectContainer.cs
- DescendantOverDescendantQuery.cs
- XmlSignatureProperties.cs
- GridViewUpdateEventArgs.cs
- BasicHttpSecurityElement.cs
- DataListCommandEventArgs.cs
- BaseTemplateCodeDomTreeGenerator.cs
- PersistChildrenAttribute.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- ComponentSerializationService.cs
- XmlIterators.cs
- Iis7Helper.cs
- SchemaCompiler.cs
- ModelProperty.cs
- ButtonPopupAdapter.cs