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
- RelationshipEnd.cs
- ProtocolsSection.cs
- HandlerMappingMemo.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ProfileParameter.cs
- FlowDocumentPaginator.cs
- EpmHelper.cs
- NamespaceList.cs
- DateTimeConstantAttribute.cs
- UnknownWrapper.cs
- TypeContext.cs
- BitmapEffectInputConnector.cs
- FixedSOMPageConstructor.cs
- _emptywebproxy.cs
- CustomAttributeBuilder.cs
- SoapTypeAttribute.cs
- ClientSponsor.cs
- SoapMessage.cs
- XomlCompilerError.cs
- XamlSerializationHelper.cs
- URLIdentityPermission.cs
- DocumentPage.cs
- DocumentSchemaValidator.cs
- MultiPartWriter.cs
- Mapping.cs
- XmlSchemaSimpleTypeUnion.cs
- DictionaryEntry.cs
- UrlEncodedParameterWriter.cs
- IconConverter.cs
- ReferencedCollectionType.cs
- DataSourceViewSchemaConverter.cs
- Delay.cs
- XPathEmptyIterator.cs
- DataServiceRequest.cs
- ChtmlPhoneCallAdapter.cs
- LeafCellTreeNode.cs
- XmlNodeChangedEventManager.cs
- PathParser.cs
- XmlElementAttribute.cs
- ScriptResourceHandler.cs
- DragAssistanceManager.cs
- TypeUnloadedException.cs
- ObsoleteAttribute.cs
- OleDbPermission.cs
- SqlUserDefinedTypeAttribute.cs
- Module.cs
- QilExpression.cs
- StringToken.cs
- WorkflowInvoker.cs
- ServiceConfigurationTraceRecord.cs
- ApplicationDirectoryMembershipCondition.cs
- HttpHandlerAction.cs
- XmlnsCompatibleWithAttribute.cs
- ItemsControlAutomationPeer.cs
- XmlRawWriter.cs
- DependencyObjectType.cs
- DynamicObject.cs
- ItemCollection.cs
- DivideByZeroException.cs
- DataGridViewRowStateChangedEventArgs.cs
- IpcClientManager.cs
- KeyMatchBuilder.cs
- RouteParser.cs
- DropSource.cs
- MenuRenderer.cs
- ToolboxComponentsCreatingEventArgs.cs
- DependencyObjectPropertyDescriptor.cs
- connectionpool.cs
- RewritingValidator.cs
- CodeEventReferenceExpression.cs
- StringTraceRecord.cs
- StructuralType.cs
- CircleHotSpot.cs
- Vector3DAnimationBase.cs
- CalendarDataBindingHandler.cs
- LineVisual.cs
- unsafenativemethodstextservices.cs
- Content.cs
- TrustLevelCollection.cs
- DataColumnSelectionConverter.cs
- UnsafeNativeMethods.cs
- ThumbAutomationPeer.cs
- InvalidWMPVersionException.cs
- WpfKnownMember.cs
- ProviderBase.cs
- SmiEventSink_Default.cs
- RegistryPermission.cs
- CompoundFileStreamReference.cs
- login.cs
- PersonalizationStateInfoCollection.cs
- TcpStreams.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- ThicknessConverter.cs
- XmlElementAttribute.cs
- XmlDataImplementation.cs
- ToolStripDropDownButton.cs
- TcpSocketManager.cs
- SqlIdentifier.cs
- QEncodedStream.cs
- TrueReadOnlyCollection.cs