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
- MetabaseSettingsIis7.cs
- DataGridViewRowConverter.cs
- GetWorkflowTree.cs
- SecurityRuntime.cs
- FilterEventArgs.cs
- ListBase.cs
- BatchStream.cs
- DataGridRowsPresenter.cs
- DateTimeParse.cs
- XmlnsDefinitionAttribute.cs
- TemplateBindingExtensionConverter.cs
- MessageFault.cs
- SoapFormatter.cs
- ObfuscateAssemblyAttribute.cs
- ExpressionVisitor.cs
- CreateParams.cs
- DataGridParentRows.cs
- LineProperties.cs
- ProfileSection.cs
- HtmlLink.cs
- Emitter.cs
- WindowsProgressbar.cs
- Funcletizer.cs
- ContextMenuAutomationPeer.cs
- PropVariant.cs
- RoleManagerSection.cs
- RotateTransform3D.cs
- EntityContainerEntitySet.cs
- DrawingCollection.cs
- GradientStopCollection.cs
- SymbolType.cs
- XmlCustomFormatter.cs
- DashStyles.cs
- IntegerFacetDescriptionElement.cs
- CodeTypeMember.cs
- PointConverter.cs
- TextPenaltyModule.cs
- SizeConverter.cs
- SoapExtensionTypeElementCollection.cs
- WhitespaceSignificantCollectionAttribute.cs
- XmlWrappingReader.cs
- CapacityStreamGeometryContext.cs
- OleDbFactory.cs
- GroupLabel.cs
- TCEAdapterGenerator.cs
- TypedColumnHandler.cs
- ChangeInterceptorAttribute.cs
- Pair.cs
- VideoDrawing.cs
- DoubleCollectionValueSerializer.cs
- ForceCopyBuildProvider.cs
- ActivityWithResultValueSerializer.cs
- XmlChildEnumerator.cs
- StyleBamlRecordReader.cs
- MessageProperties.cs
- TdsEnums.cs
- IntSecurity.cs
- Attribute.cs
- WebPartMinimizeVerb.cs
- ConnectionPoint.cs
- SqlCacheDependencyDatabase.cs
- DateTimeOffsetConverter.cs
- ParserStack.cs
- Canvas.cs
- DBSqlParser.cs
- PlanCompilerUtil.cs
- MouseCaptureWithinProperty.cs
- DetailsViewUpdateEventArgs.cs
- WebEventCodes.cs
- ErrorProvider.cs
- StylusDevice.cs
- KnownTypes.cs
- Timer.cs
- PriorityRange.cs
- TaiwanCalendar.cs
- UserNameSecurityTokenProvider.cs
- AutomationIdentifier.cs
- VirtualDirectoryMappingCollection.cs
- PrintPreviewControl.cs
- ContextMenu.cs
- EntityDescriptor.cs
- ISSmlParser.cs
- Deflater.cs
- DataDocumentXPathNavigator.cs
- MailWebEventProvider.cs
- TextBoxBase.cs
- SourceInterpreter.cs
- XmlSerializationWriter.cs
- MailWebEventProvider.cs
- X500Name.cs
- Brushes.cs
- XPathDescendantIterator.cs
- DesignerProperties.cs
- AnnotationAuthorChangedEventArgs.cs
- ExternalDataExchangeClient.cs
- XamlWriterExtensions.cs
- EdmRelationshipRoleAttribute.cs
- OdbcCommandBuilder.cs
- PackageProperties.cs
- ClientSideQueueItem.cs