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
- AxisAngleRotation3D.cs
- autovalidator.cs
- ClockController.cs
- RemotingServices.cs
- DnsCache.cs
- _ConnectionGroup.cs
- InsufficientMemoryException.cs
- ControlTemplate.cs
- MetadataPropertyAttribute.cs
- Buffer.cs
- StyleXamlTreeBuilder.cs
- PropertySourceInfo.cs
- FileLevelControlBuilderAttribute.cs
- UIElement.cs
- UnionCodeGroup.cs
- GrammarBuilder.cs
- SoapServerMessage.cs
- FormClosedEvent.cs
- NetworkStream.cs
- SqlDependencyUtils.cs
- ExpressionDumper.cs
- ToolboxComponentsCreatingEventArgs.cs
- HttpApplication.cs
- Perspective.cs
- Grant.cs
- ListViewAutomationPeer.cs
- InputLanguageEventArgs.cs
- SerializationFieldInfo.cs
- Interop.cs
- Ops.cs
- CommandManager.cs
- TreeViewDesigner.cs
- ProxyWebPart.cs
- FullTrustAssembliesSection.cs
- Attachment.cs
- BindingContext.cs
- XmlObjectSerializerWriteContextComplex.cs
- BindingMAnagerBase.cs
- Point.cs
- WebPartDescriptionCollection.cs
- ProfileProvider.cs
- ResolveDuplexCD1AsyncResult.cs
- Activator.cs
- DataRowExtensions.cs
- VarRemapper.cs
- WebPartCancelEventArgs.cs
- X500Name.cs
- FolderNameEditor.cs
- AssemblyInfo.cs
- HttpContext.cs
- XmlILOptimizerVisitor.cs
- RunInstallerAttribute.cs
- QilUnary.cs
- FormClosingEvent.cs
- ApplicationActivator.cs
- Emitter.cs
- LinearKeyFrames.cs
- ConfigurationCollectionAttribute.cs
- DirectionalLight.cs
- OpenTypeLayoutCache.cs
- SqlFunctionAttribute.cs
- SrgsItemList.cs
- XPathDocumentBuilder.cs
- UInt64.cs
- TransformDescriptor.cs
- OrderedParallelQuery.cs
- SQLCharsStorage.cs
- NotFiniteNumberException.cs
- RewritingValidator.cs
- FixUp.cs
- InputScope.cs
- ControlAdapter.cs
- BindingSource.cs
- ServiceDiscoveryElement.cs
- TextBoxAutomationPeer.cs
- RelationalExpressions.cs
- DispatcherTimer.cs
- DateTimeFormatInfo.cs
- DiscoveryClientChannelBase.cs
- handlecollector.cs
- IChannel.cs
- ListControlBuilder.cs
- ConfigurationCollectionAttribute.cs
- WindowsPrincipal.cs
- InputReport.cs
- Convert.cs
- ToolStripComboBox.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- DiscoveryUtility.cs
- ToolboxDataAttribute.cs
- LZCodec.cs
- HttpMethodConstraint.cs
- Int32CAMarshaler.cs
- DispatchWrapper.cs
- Lasso.cs
- AnnotationAdorner.cs
- SqlUserDefinedTypeAttribute.cs
- HtmlMobileTextWriter.cs
- HostingPreferredMapPath.cs
- login.cs