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
- ParseNumbers.cs
- VectorAnimationUsingKeyFrames.cs
- PropertyEntry.cs
- XmlQualifiedName.cs
- DataConnectionHelper.cs
- AssociationProvider.cs
- WasAdminWrapper.cs
- Vector3DKeyFrameCollection.cs
- ImageClickEventArgs.cs
- PasswordDeriveBytes.cs
- ThreadWorkerController.cs
- MouseGesture.cs
- AssemblyInfo.cs
- TimerEventSubscriptionCollection.cs
- SqlVersion.cs
- FixedPageStructure.cs
- ISessionStateStore.cs
- OperationAbortedException.cs
- RelatedImageListAttribute.cs
- AssemblyResourceLoader.cs
- AuthenticationConfig.cs
- ComplexType.cs
- WebPartChrome.cs
- TextEditor.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- FrameworkContextData.cs
- WebPartConnectionsCancelVerb.cs
- Win32KeyboardDevice.cs
- MissingSatelliteAssemblyException.cs
- HyperLinkColumn.cs
- TemplateContainer.cs
- HtmlValidationSummaryAdapter.cs
- SerialReceived.cs
- CaseStatementProjectedSlot.cs
- DispatcherTimer.cs
- EntityConnectionStringBuilderItem.cs
- BaseDataBoundControl.cs
- SynchronousChannel.cs
- AssemblyNameUtility.cs
- FileVersion.cs
- EntityCodeGenerator.cs
- ToolTipService.cs
- Underline.cs
- PermissionAttributes.cs
- BamlLocalizer.cs
- ThaiBuddhistCalendar.cs
- PointLight.cs
- ShaderEffect.cs
- EpmContentSerializer.cs
- TextFindEngine.cs
- ProfilePropertyMetadata.cs
- VariableDesigner.xaml.cs
- WebScriptServiceHostFactory.cs
- DataConnectionHelper.cs
- ReadOnlyObservableCollection.cs
- BaseResourcesBuildProvider.cs
- documentsequencetextpointer.cs
- CatalogPartChrome.cs
- MachineKeySection.cs
- TransactionTraceIdentifier.cs
- Models.cs
- DataMisalignedException.cs
- ButtonPopupAdapter.cs
- StylusDownEventArgs.cs
- DocumentPaginator.cs
- QueryOptionExpression.cs
- DecimalAnimationUsingKeyFrames.cs
- SqlClientWrapperSmiStreamChars.cs
- SmiMetaDataProperty.cs
- TagPrefixInfo.cs
- WebPartTransformer.cs
- XmlReader.cs
- SafeRightsManagementSessionHandle.cs
- FamilyTypeface.cs
- Renderer.cs
- LayoutInformation.cs
- SqlDataSourceQueryEditorForm.cs
- StrongNamePublicKeyBlob.cs
- MimeParameterWriter.cs
- Qualifier.cs
- MsmqChannelFactory.cs
- InteropAutomationProvider.cs
- CheckBox.cs
- SHA1Cng.cs
- StreamUpgradeProvider.cs
- CommandID.cs
- SizeAnimationClockResource.cs
- CheckBox.cs
- MetadataConversionError.cs
- WindowsEditBox.cs
- Vector3DCollectionConverter.cs
- RenderTargetBitmap.cs
- NameScopePropertyAttribute.cs
- SafeMarshalContext.cs
- ArraySet.cs
- MarkupCompiler.cs
- PackUriHelper.cs
- PerformanceCounterScope.cs
- SmtpNetworkElement.cs
- EdmFunctionAttribute.cs