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
- BoolExpressionVisitors.cs
- DataGridViewComboBoxCell.cs
- SelectionItemPattern.cs
- RoutedPropertyChangedEventArgs.cs
- WorkflowInstanceRecord.cs
- TableRow.cs
- MessageBox.cs
- FakeModelPropertyImpl.cs
- ProfileProvider.cs
- FlowDocumentPage.cs
- NavigationCommands.cs
- ProfileServiceManager.cs
- ObjectListCommandsPage.cs
- ClientRolePrincipal.cs
- UnitControl.cs
- serverconfig.cs
- Wildcard.cs
- Label.cs
- HScrollBar.cs
- CodeConstructor.cs
- SqlDataSourceFilteringEventArgs.cs
- AttachedAnnotation.cs
- WindowsRegion.cs
- OdbcReferenceCollection.cs
- UserControl.cs
- SQLInt64.cs
- NamespaceList.cs
- MonitoringDescriptionAttribute.cs
- FrameSecurityDescriptor.cs
- RoleManagerSection.cs
- DnsPermission.cs
- ClientSettingsSection.cs
- WebSysDefaultValueAttribute.cs
- SynchronizationScope.cs
- AggregationMinMaxHelpers.cs
- QilStrConcatenator.cs
- TypedMessageConverter.cs
- DependencyObjectType.cs
- CommonGetThemePartSize.cs
- ParameterReplacerVisitor.cs
- EmptyStringExpandableObjectConverter.cs
- CatalogPart.cs
- InternalSafeNativeMethods.cs
- EnvironmentPermission.cs
- DataSourceHelper.cs
- DataRowExtensions.cs
- UnsettableComboBox.cs
- ClientTarget.cs
- FormViewDeleteEventArgs.cs
- URLMembershipCondition.cs
- ReadOnlyDictionary.cs
- Query.cs
- LinearKeyFrames.cs
- DBBindings.cs
- GraphicsContainer.cs
- XmlIterators.cs
- ContextStaticAttribute.cs
- MobileControlsSectionHandler.cs
- WebBrowserEvent.cs
- ConsumerConnectionPoint.cs
- CodeAttributeArgument.cs
- GrammarBuilderBase.cs
- GridEntry.cs
- WebHttpElement.cs
- ByteStorage.cs
- Debugger.cs
- TransformationRules.cs
- SafeArrayRankMismatchException.cs
- CrossContextChannel.cs
- GenericsInstances.cs
- MimeMultiPart.cs
- TypeSource.cs
- ISCIIEncoding.cs
- ActivationServices.cs
- WebPartChrome.cs
- ProjectionCamera.cs
- WebServiceData.cs
- SplashScreenNativeMethods.cs
- DateTimeFormatInfo.cs
- TextModifierScope.cs
- X509ChainElement.cs
- QuotedStringWriteStateInfo.cs
- DbParameterHelper.cs
- RootBrowserWindowProxy.cs
- ControlAdapter.cs
- WebResourceUtil.cs
- UrlAuthFailedErrorFormatter.cs
- ObjectListFieldCollection.cs
- KeyValueSerializer.cs
- KeyFrames.cs
- WebResponse.cs
- SchemaImporter.cs
- ParallelTimeline.cs
- UInt32Converter.cs
- CellParaClient.cs
- XmlHierarchicalDataSourceView.cs
- ContainerParagraph.cs
- DynamicValidatorEventArgs.cs
- RoleManagerSection.cs
- Brush.cs