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
- AddInToken.cs
- IResourceProvider.cs
- securitycriticaldata.cs
- HwndKeyboardInputProvider.cs
- GPStream.cs
- PeerEndPoint.cs
- WinEventQueueItem.cs
- HMACSHA256.cs
- XmlWhitespace.cs
- ResolveMatchesApril2005.cs
- XmlUtilWriter.cs
- ItemsPanelTemplate.cs
- OperationPickerDialog.designer.cs
- SelectionProviderWrapper.cs
- ISCIIEncoding.cs
- ObjectContext.cs
- CategoryEditor.cs
- EditorZone.cs
- DefaultBindingPropertyAttribute.cs
- SignatureResourcePool.cs
- ExecutionEngineException.cs
- SubMenuStyleCollection.cs
- SectionXmlInfo.cs
- ContentIterators.cs
- DataGridViewColumnEventArgs.cs
- HtmlTextViewAdapter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- complextypematerializer.cs
- ClientSideProviderDescription.cs
- Token.cs
- MenuItemStyleCollection.cs
- SplashScreen.cs
- TabControl.cs
- IMembershipProvider.cs
- DbProviderFactories.cs
- SecurityUtils.cs
- Column.cs
- ZeroOpNode.cs
- ToolStripItemDesigner.cs
- HtmlWindowCollection.cs
- Int32CAMarshaler.cs
- StructuredCompositeActivityDesigner.cs
- Win32SafeHandles.cs
- HtmlLiteralTextAdapter.cs
- KeyGesture.cs
- GrabHandleGlyph.cs
- QualificationDataAttribute.cs
- LinkAreaEditor.cs
- ZipIOCentralDirectoryBlock.cs
- DataGridViewComboBoxColumn.cs
- SqlFactory.cs
- MobileCapabilities.cs
- RoleGroupCollection.cs
- CriticalHandle.cs
- ScrollViewerAutomationPeer.cs
- SAPICategories.cs
- CallbackException.cs
- StringReader.cs
- ExternalDataExchangeService.cs
- HttpWebRequest.cs
- TreeNodeBindingCollection.cs
- TreeNodeBindingCollection.cs
- ValueSerializer.cs
- VirtualPath.cs
- StrongNameKeyPair.cs
- SymbolType.cs
- ObjectSecurity.cs
- DnsPermission.cs
- PageRequestManager.cs
- ExpressionEditorAttribute.cs
- EntityDataSourceConfigureObjectContext.cs
- CommandField.cs
- SelectionProcessor.cs
- DataViewManagerListItemTypeDescriptor.cs
- MailMessage.cs
- CancelAsyncOperationRequest.cs
- Module.cs
- MimeWriter.cs
- RuntimeArgumentHandle.cs
- login.cs
- InstanceLockQueryResult.cs
- QueryOperationResponseOfT.cs
- FormsAuthenticationEventArgs.cs
- XmlSchemaSimpleContentRestriction.cs
- WebPartDeleteVerb.cs
- FontInfo.cs
- EventHandlerList.cs
- ToolBarPanel.cs
- FontCollection.cs
- TypeReference.cs
- XmlDataSourceNodeDescriptor.cs
- DictionaryBase.cs
- ColorContext.cs
- AuthorizationSection.cs
- ToolStripItemCollection.cs
- ToolStripLocationCancelEventArgs.cs
- DataTableCollection.cs
- EncryptedPackage.cs
- RuleDefinitions.cs
- designeractionlistschangedeventargs.cs