Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- WsdlParser.cs
- MLangCodePageEncoding.cs
- SystemIcmpV6Statistics.cs
- ImageButton.cs
- SqlBuilder.cs
- CompareInfo.cs
- ConfigViewGenerator.cs
- DiscoveryDocumentSerializer.cs
- PropertyInfoSet.cs
- HotCommands.cs
- BoundConstants.cs
- SqlClientWrapperSmiStream.cs
- BatchParser.cs
- StackBuilderSink.cs
- SelectionProcessor.cs
- Perspective.cs
- RangeValidator.cs
- WebBaseEventKeyComparer.cs
- Verify.cs
- Panel.cs
- WebServiceResponseDesigner.cs
- CommonProperties.cs
- ContactManager.cs
- CryptoStream.cs
- CreateUserWizardAutoFormat.cs
- FamilyMapCollection.cs
- DataAdapter.cs
- DataListItemCollection.cs
- InvokeMethod.cs
- RowBinding.cs
- CollectionConverter.cs
- DragDeltaEventArgs.cs
- TypeConverterMarkupExtension.cs
- ImageMetadata.cs
- SrgsElement.cs
- SchemaElementDecl.cs
- KeyedQueue.cs
- MarkupProperty.cs
- EntityDataSource.cs
- ClrPerspective.cs
- ByteStack.cs
- ImageCodecInfo.cs
- ZipPackage.cs
- ACL.cs
- ChangeInterceptorAttribute.cs
- BoolExpressionVisitors.cs
- DataIdProcessor.cs
- BrowserInteropHelper.cs
- TextTreeTextBlock.cs
- SR.cs
- AdCreatedEventArgs.cs
- EntityDataSourceDataSelectionPanel.cs
- ListBindingConverter.cs
- SqlParameter.cs
- EmptyQuery.cs
- DockProviderWrapper.cs
- EntityContainerRelationshipSet.cs
- SecurityException.cs
- CollectionViewGroup.cs
- DecimalFormatter.cs
- UIElementParaClient.cs
- SegmentInfo.cs
- Propagator.Evaluator.cs
- ValuePattern.cs
- WsatConfiguration.cs
- WebPartCatalogAddVerb.cs
- SqlDataSourceEnumerator.cs
- DoubleAnimationUsingPath.cs
- LZCodec.cs
- BezierSegment.cs
- GridViewSortEventArgs.cs
- SessionStateContainer.cs
- HostedHttpTransportManager.cs
- Mouse.cs
- TextElementAutomationPeer.cs
- WebConfigurationManager.cs
- TypeConverter.cs
- SvcMapFileSerializer.cs
- CompositeFontInfo.cs
- TextLine.cs
- CalendarDay.cs
- RectangleConverter.cs
- SelectionRangeConverter.cs
- WebPartCollection.cs
- Compilation.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- MachineKeyConverter.cs
- IgnoreSectionHandler.cs
- XPathQilFactory.cs
- ZoneMembershipCondition.cs
- SingleConverter.cs
- OutputCacheModule.cs
- BuiltInPermissionSets.cs
- OletxResourceManager.cs
- _NegoStream.cs
- PolicyStatement.cs
- EnumValAlphaComparer.cs
- ContractValidationHelper.cs
- RotateTransform.cs
- BinaryUtilClasses.cs