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
- LinearGradientBrush.cs
- InternalsVisibleToAttribute.cs
- BamlLocalizer.cs
- JpegBitmapDecoder.cs
- PersonalizationDictionary.cs
- XmlBinaryWriterSession.cs
- ISFClipboardData.cs
- RecipientInfo.cs
- DialogResultConverter.cs
- DrawingContextFlattener.cs
- RuleValidation.cs
- DataControlField.cs
- ExecutionEngineException.cs
- SpinLock.cs
- DataSourceControlBuilder.cs
- WindowsListViewScroll.cs
- CalendarAutomationPeer.cs
- XmlReader.cs
- NavigationProperty.cs
- NativeRecognizer.cs
- TextCompositionManager.cs
- DBConcurrencyException.cs
- EdmToObjectNamespaceMap.cs
- IntMinMaxAggregationOperator.cs
- CustomError.cs
- XmlQuerySequence.cs
- XPathMessageFilterElement.cs
- CodeObjectCreateExpression.cs
- XamlSerializerUtil.cs
- ScrollContentPresenter.cs
- MessageSecurityException.cs
- GridLength.cs
- Vector3DAnimation.cs
- ConfigurationProperty.cs
- ImageSourceTypeConverter.cs
- PolyBezierSegmentFigureLogic.cs
- ProfileSection.cs
- SortDescriptionCollection.cs
- XomlCompilerError.cs
- ManipulationDevice.cs
- EntityDataSourceContextCreatedEventArgs.cs
- HttpValueCollection.cs
- WaveHeader.cs
- ToolboxItemCollection.cs
- TextBox.cs
- SamlAssertion.cs
- SymbolEqualComparer.cs
- RegexWriter.cs
- TableRow.cs
- TextOptions.cs
- elementinformation.cs
- RemoteWebConfigurationHost.cs
- DragEventArgs.cs
- TextServicesDisplayAttribute.cs
- TableLayoutColumnStyleCollection.cs
- SubclassTypeValidatorAttribute.cs
- EntityDataSourceChangedEventArgs.cs
- ContextMarshalException.cs
- StylusPlugInCollection.cs
- SharedTcpTransportManager.cs
- ModulesEntry.cs
- CheckBoxRenderer.cs
- DataServiceSaveChangesEventArgs.cs
- NullableConverter.cs
- StylusPoint.cs
- SequentialOutput.cs
- ClosableStream.cs
- TagElement.cs
- TableRow.cs
- LambdaCompiler.Lambda.cs
- AdRotator.cs
- PerCallInstanceContextProvider.cs
- TreeViewImageIndexConverter.cs
- XhtmlBasicSelectionListAdapter.cs
- RegistryPermission.cs
- ByteStreamGeometryContext.cs
- DataColumn.cs
- HandlerBase.cs
- ParsedAttributeCollection.cs
- ProfilePropertyMetadata.cs
- XPathScanner.cs
- DropShadowBitmapEffect.cs
- DebuggerAttributes.cs
- GeneratedView.cs
- DesignerHelpers.cs
- TemplateBindingExpressionConverter.cs
- SharedPerformanceCounter.cs
- ClonableStack.cs
- DataServiceConfiguration.cs
- MaskDescriptor.cs
- DateTimeConverter.cs
- DocumentSchemaValidator.cs
- RootBuilder.cs
- StateMachine.cs
- Geometry3D.cs
- followingquery.cs
- CompositeFontInfo.cs
- TextSelectionHighlightLayer.cs
- DataServiceProviderWrapper.cs
- FixedDSBuilder.cs