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
- TypographyProperties.cs
- ControlDesigner.cs
- PasswordBox.cs
- DocumentViewerAutomationPeer.cs
- CompositionTarget.cs
- XmlDocument.cs
- DesignTimeTemplateParser.cs
- CompiledQuery.cs
- LockedBorderGlyph.cs
- GeneralTransform3DGroup.cs
- RepeaterItem.cs
- ProtectedProviderSettings.cs
- DelayedRegex.cs
- ProxyAttribute.cs
- KeysConverter.cs
- IdleTimeoutMonitor.cs
- DecimalConverter.cs
- AnnotationResourceCollection.cs
- EdmType.cs
- TransformDescriptor.cs
- AuthorizationSection.cs
- JpegBitmapDecoder.cs
- RequestCacheManager.cs
- OutKeywords.cs
- _ChunkParse.cs
- DataServiceQuery.cs
- WebHttpBinding.cs
- FixedSOMLineRanges.cs
- X509CertificateValidationMode.cs
- FileDialog.cs
- DataKey.cs
- ComboBoxRenderer.cs
- DownloadProgressEventArgs.cs
- Rfc2898DeriveBytes.cs
- StringArrayConverter.cs
- DataShape.cs
- BitmapSource.cs
- ToolStripContentPanelRenderEventArgs.cs
- ToolStripSplitStackLayout.cs
- DocComment.cs
- SecUtil.cs
- DataBoundControlAdapter.cs
- Header.cs
- Stream.cs
- ToolStripItemRenderEventArgs.cs
- PathSegmentCollection.cs
- SQLDouble.cs
- GraphicsContainer.cs
- DataException.cs
- Adorner.cs
- HiddenField.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CompilerState.cs
- ComboBox.cs
- StatusBarPanel.cs
- TableRowGroup.cs
- GenericWebPart.cs
- StrokeCollectionConverter.cs
- Soap.cs
- DesignerSerializationVisibilityAttribute.cs
- RectangleConverter.cs
- SqlDependency.cs
- ResourcesBuildProvider.cs
- RootBuilder.cs
- CanonicalFontFamilyReference.cs
- CodeVariableReferenceExpression.cs
- DiagnosticTraceSource.cs
- cryptoapiTransform.cs
- MediaElement.cs
- UrlRoutingModule.cs
- ListViewItemMouseHoverEvent.cs
- SessionPageStatePersister.cs
- Mutex.cs
- IntranetCredentialPolicy.cs
- WebPartEditorApplyVerb.cs
- StateManagedCollection.cs
- RelationalExpressions.cs
- ExpandSegment.cs
- BindingBase.cs
- SqlTopReducer.cs
- CodePageEncoding.cs
- KeyManager.cs
- JsonFormatWriterGenerator.cs
- UserControlCodeDomTreeGenerator.cs
- LinqDataSourceDeleteEventArgs.cs
- ResourcePermissionBase.cs
- Property.cs
- IISUnsafeMethods.cs
- RadioButtonDesigner.cs
- XamlToRtfParser.cs
- AllowedAudienceUriElementCollection.cs
- LogRecordSequence.cs
- ConfigurationStrings.cs
- ApplicationGesture.cs
- RefreshPropertiesAttribute.cs
- Triplet.cs
- AutomationElementCollection.cs
- ActivitiesCollection.cs
- ComponentDispatcher.cs
- ToolStripRenderer.cs