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
- ExpressionBuilder.cs
- SelectionEditor.cs
- HTTPNotFoundHandler.cs
- Vector3DAnimationBase.cs
- _ContextAwareResult.cs
- UnsafeNativeMethods.cs
- PageTheme.cs
- InternalConfigConfigurationFactory.cs
- StrokeNodeOperations.cs
- FormatException.cs
- StrongName.cs
- EntitySetBase.cs
- Int16AnimationUsingKeyFrames.cs
- ExpressionLink.cs
- AutomationElementCollection.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- FilteredDataSetHelper.cs
- ImageClickEventArgs.cs
- SqlException.cs
- SqlConnection.cs
- RouteData.cs
- SortedList.cs
- DependencyObjectPropertyDescriptor.cs
- BitmapPalette.cs
- SqlConnectionString.cs
- SqlDependency.cs
- LayeredChannelFactory.cs
- TriggerActionCollection.cs
- BlockCollection.cs
- DesignerVerbCollection.cs
- Padding.cs
- CompleteWizardStep.cs
- XmlAttributeAttribute.cs
- WebPartMovingEventArgs.cs
- ButtonChrome.cs
- XmlConverter.cs
- StatusBarAutomationPeer.cs
- TTSEngineProxy.cs
- Rect.cs
- Classification.cs
- SimpleTypeResolver.cs
- StringUtil.cs
- ListBoxChrome.cs
- DataGridViewTextBoxCell.cs
- StrongTypingException.cs
- LongCountAggregationOperator.cs
- XmlCDATASection.cs
- VirtualPathProvider.cs
- InvokeWebServiceDesigner.cs
- DllHostedComPlusServiceHost.cs
- CryptoStream.cs
- WriteTimeStream.cs
- GraphicsState.cs
- TextEncodedRawTextWriter.cs
- InkPresenterAutomationPeer.cs
- columnmapkeybuilder.cs
- GridPattern.cs
- DataServiceQueryOfT.cs
- Converter.cs
- String.cs
- OutOfMemoryException.cs
- DataTableMappingCollection.cs
- DetailsViewRowCollection.cs
- DefaultEventAttribute.cs
- XMLSchema.cs
- SortedDictionary.cs
- TextContainer.cs
- ClonableStack.cs
- FixedSOMPageConstructor.cs
- Popup.cs
- AttributeEmitter.cs
- FontStretch.cs
- NonClientArea.cs
- ToolStripDropDownButton.cs
- DecoderNLS.cs
- RequestTimeoutManager.cs
- GroupBox.cs
- ObfuscationAttribute.cs
- BinaryConverter.cs
- SqlCrossApplyToCrossJoin.cs
- UseLicense.cs
- SystemColorTracker.cs
- HtmlGenericControl.cs
- PathFigureCollectionValueSerializer.cs
- AtomContentProperty.cs
- RangeValuePatternIdentifiers.cs
- RegexCompilationInfo.cs
- EdmSchemaAttribute.cs
- PtsContext.cs
- x509store.cs
- BookmarkEventArgs.cs
- Completion.cs
- Label.cs
- MetadataUtilsSmi.cs
- OleDbInfoMessageEvent.cs
- DynamicMethod.cs
- MenuItemAutomationPeer.cs
- CompModHelpers.cs
- ActionMismatchAddressingException.cs
- NotCondition.cs