Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Regex / System / Text / RegularExpressions / CompiledRegexRunner.cs / 1305376 / CompiledRegexRunner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Reflection.Emit; #if !SILVERLIGHT 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); } #endif // 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; #if !SILVERLIGHT 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); } #endif // 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
- AmbientLight.cs
- BindingGraph.cs
- SQlBooleanStorage.cs
- SubpageParagraph.cs
- DataErrorValidationRule.cs
- DataStorage.cs
- ParseChildrenAsPropertiesAttribute.cs
- OpCellTreeNode.cs
- relpropertyhelper.cs
- InputReferenceExpression.cs
- SymbolType.cs
- NetTcpSectionData.cs
- Int32Collection.cs
- PropertiesTab.cs
- ToolBar.cs
- ControlAdapter.cs
- Variable.cs
- TextServicesPropertyRanges.cs
- DbDataAdapter.cs
- IndexedGlyphRun.cs
- TransformGroup.cs
- OleDbCommandBuilder.cs
- XXXOnTypeBuilderInstantiation.cs
- BypassElementCollection.cs
- ImplicitInputBrush.cs
- SubMenuStyleCollectionEditor.cs
- PreviewKeyDownEventArgs.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataRelationCollection.cs
- UriWriter.cs
- Visual3D.cs
- LowerCaseStringConverter.cs
- SingletonChannelAcceptor.cs
- ReadWriteObjectLock.cs
- NativeMethods.cs
- Point3D.cs
- LowerCaseStringConverter.cs
- SourceFileBuildProvider.cs
- Resources.Designer.cs
- RectAnimationUsingKeyFrames.cs
- SharedUtils.cs
- ListBox.cs
- BooleanFunctions.cs
- FileDialogCustomPlacesCollection.cs
- SpotLight.cs
- MasterPageParser.cs
- WebPartAuthorizationEventArgs.cs
- XmlNamedNodeMap.cs
- ISAPIWorkerRequest.cs
- BindingsCollection.cs
- DateTimeValueSerializerContext.cs
- Transform3DGroup.cs
- EventPrivateKey.cs
- LookupBindingPropertiesAttribute.cs
- ImportOptions.cs
- CapabilitiesRule.cs
- DependencyObject.cs
- DataGridParentRows.cs
- ResourceBinder.cs
- ComponentConverter.cs
- XmlStringTable.cs
- SqlDataSource.cs
- SequenceFullException.cs
- PersonalizableTypeEntry.cs
- RelationshipDetailsRow.cs
- BreakRecordTable.cs
- UnsafeNativeMethods.cs
- StreamSecurityUpgradeInitiator.cs
- NameValuePair.cs
- AddressAlreadyInUseException.cs
- BulletedListDesigner.cs
- GridViewDeletedEventArgs.cs
- CodeArrayIndexerExpression.cs
- GuidelineCollection.cs
- FaultDesigner.cs
- WindowsListViewSubItem.cs
- DatatypeImplementation.cs
- DataReceivedEventArgs.cs
- ImageListUtils.cs
- XhtmlBasicValidationSummaryAdapter.cs
- SaveFileDialog.cs
- DocumentApplicationJournalEntryEventArgs.cs
- FileDialogCustomPlace.cs
- RootBrowserWindowAutomationPeer.cs
- ColumnMapProcessor.cs
- PixelFormats.cs
- ThreadInterruptedException.cs
- BuildProvider.cs
- MimeParameters.cs
- SoapSchemaImporter.cs
- ComIntegrationManifestGenerator.cs
- ReceiveActivityDesignerTheme.cs
- SamlEvidence.cs
- FixedStringLookup.cs
- CompositeTypefaceMetrics.cs
- DbProviderManifest.cs
- Material.cs
- XmlQuerySequence.cs
- Part.cs
- SendMailErrorEventArgs.cs