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
- SerTrace.cs
- MatrixKeyFrameCollection.cs
- OleServicesContext.cs
- PersonalizationStateInfoCollection.cs
- RecognizeCompletedEventArgs.cs
- x509store.cs
- FrameworkObject.cs
- ToolStripContainer.cs
- VoiceObjectToken.cs
- DeviceContexts.cs
- RsaKeyIdentifierClause.cs
- XmlSerializationWriter.cs
- MdImport.cs
- FixedPageProcessor.cs
- BevelBitmapEffect.cs
- SafeCoTaskMem.cs
- XmlQualifiedName.cs
- ResourceDictionaryCollection.cs
- RootBrowserWindowProxy.cs
- StreamGeometry.cs
- StrokeCollectionConverter.cs
- SqlDataSourceCommandParser.cs
- DataGridState.cs
- EntityDataSourceDataSelectionPanel.cs
- SecureUICommand.cs
- ExtensionWindowResizeGrip.cs
- odbcmetadatacollectionnames.cs
- AsyncOperationManager.cs
- ProviderManager.cs
- HorizontalAlignConverter.cs
- LocalizableAttribute.cs
- ScrollBarRenderer.cs
- RunWorkerCompletedEventArgs.cs
- X509Chain.cs
- DataSourceHelper.cs
- DataGridViewCellStyleChangedEventArgs.cs
- CodeThrowExceptionStatement.cs
- _SecureChannel.cs
- COM2ExtendedBrowsingHandler.cs
- PropertyDescriptorGridEntry.cs
- WebPartVerbCollection.cs
- ProcessInputEventArgs.cs
- ClientBuildManager.cs
- SerializationEventsCache.cs
- CategoryAttribute.cs
- FunctionImportElement.cs
- PromptBuilder.cs
- XmlReturnWriter.cs
- AncestorChangedEventArgs.cs
- Cursor.cs
- AuthenticationModuleElement.cs
- CollectionEditor.cs
- ForeignKeyConstraint.cs
- CollectionBuilder.cs
- ErrorFormatter.cs
- PointCollection.cs
- ParseChildrenAsPropertiesAttribute.cs
- updateconfighost.cs
- MobileCapabilities.cs
- DispatcherOperation.cs
- WSUtilitySpecificationVersion.cs
- Collection.cs
- ContourSegment.cs
- CellRelation.cs
- BatchStream.cs
- TcpSocketManager.cs
- Root.cs
- FacetDescription.cs
- XmlUtf8RawTextWriter.cs
- NamedObjectList.cs
- RegexWorker.cs
- ContactManager.cs
- TdsParserHelperClasses.cs
- TimeIntervalCollection.cs
- LineGeometry.cs
- Transform3DCollection.cs
- Sequence.cs
- Vector3DConverter.cs
- HtmlMeta.cs
- DispatcherOperation.cs
- OperationAbortedException.cs
- ClientSettingsSection.cs
- MouseButtonEventArgs.cs
- TabletDeviceInfo.cs
- WebPartCollection.cs
- IPAddress.cs
- SerializationEventsCache.cs
- OracleCommand.cs
- SettingsPropertyWrongTypeException.cs
- BoundingRectTracker.cs
- ListViewItem.cs
- HandlerFactoryWrapper.cs
- DataGridViewCellValueEventArgs.cs
- EntityClientCacheEntry.cs
- CTreeGenerator.cs
- StringConcat.cs
- Style.cs
- UnionExpr.cs
- BitmapEncoder.cs
- EffectiveValueEntry.cs