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
- ExpandSegmentCollection.cs
- LinkedResource.cs
- FileDialogPermission.cs
- HtmlTextArea.cs
- AppDomainFactory.cs
- TdsEnums.cs
- PropertyDescriptorCollection.cs
- DataGridViewAccessibleObject.cs
- WebServiceHandlerFactory.cs
- EdgeModeValidation.cs
- DataGridViewTopLeftHeaderCell.cs
- ListViewItem.cs
- SimpleNameService.cs
- SynchronizedKeyedCollection.cs
- GcHandle.cs
- MsmqPoisonMessageException.cs
- SqlGatherConsumedAliases.cs
- XPathCompileException.cs
- HttpDebugHandler.cs
- TextEditorSpelling.cs
- EntityCommandCompilationException.cs
- WindowInteropHelper.cs
- AudioStateChangedEventArgs.cs
- WebZone.cs
- CodeIdentifier.cs
- CompilerTypeWithParams.cs
- ProviderSettingsCollection.cs
- IsolatedStorageFileStream.cs
- NameValueFileSectionHandler.cs
- AttachmentService.cs
- HttpWebRequest.cs
- OleAutBinder.cs
- XomlCompiler.cs
- StatusBar.cs
- SoapBinding.cs
- CompoundFileStorageReference.cs
- DataGridViewCellStyleEditor.cs
- EmbeddedMailObjectsCollection.cs
- XslTransform.cs
- Image.cs
- AppDomainGrammarProxy.cs
- AssociatedControlConverter.cs
- DockingAttribute.cs
- InheritanceRules.cs
- JapaneseLunisolarCalendar.cs
- DebugView.cs
- HierarchicalDataBoundControlAdapter.cs
- ObjectAnimationUsingKeyFrames.cs
- HierarchicalDataTemplate.cs
- EntityDataSourceEntityTypeFilterItem.cs
- xmlsaver.cs
- SqlComparer.cs
- ExecutionPropertyManager.cs
- FixedStringLookup.cs
- CellParagraph.cs
- LineSegment.cs
- SqlTransaction.cs
- AccessDataSourceView.cs
- ResourceContainer.cs
- ElapsedEventArgs.cs
- GetPolicyDetailsRequest.cs
- ZipIOFileItemStream.cs
- DisplayMemberTemplateSelector.cs
- RequiredFieldValidator.cs
- AccessDataSourceWizardForm.cs
- BooleanStorage.cs
- PropertyRecord.cs
- CompositeFontParser.cs
- XmlSchemaException.cs
- CompositeTypefaceMetrics.cs
- ClonableStack.cs
- ToggleButtonAutomationPeer.cs
- SyndicationContent.cs
- ObjectConverter.cs
- HandlerWithFactory.cs
- DocumentApplication.cs
- FontFamily.cs
- AttachInfo.cs
- DataSourceCollectionBase.cs
- MailSettingsSection.cs
- ObjectListCommandsPage.cs
- TextEditorContextMenu.cs
- Style.cs
- EmptyEnumerable.cs
- CompModHelpers.cs
- RadioButtonStandardAdapter.cs
- SchemaTypeEmitter.cs
- CultureMapper.cs
- Type.cs
- TypeLibConverter.cs
- PropertyTabAttribute.cs
- FontDialog.cs
- TimerEventSubscription.cs
- Repeater.cs
- ScrollData.cs
- ActivityMarkupSerializationProvider.cs
- WebResponse.cs
- ReadOnlyNameValueCollection.cs
- NavigationHelper.cs
- ScriptModule.cs