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
- ListViewItem.cs
- UserUseLicenseDictionaryLoader.cs
- WebPartEditorOkVerb.cs
- SpotLight.cs
- DataGridViewCheckBoxColumn.cs
- RunWorkerCompletedEventArgs.cs
- FactoryMaker.cs
- AdCreatedEventArgs.cs
- ToolStripSeparator.cs
- FormattedText.cs
- BrowserDefinitionCollection.cs
- HMACMD5.cs
- TextEditorMouse.cs
- CacheOutputQuery.cs
- ConnectionManagementSection.cs
- DataSourceControl.cs
- WindowsStreamSecurityBindingElement.cs
- DatatypeImplementation.cs
- AcceleratedTokenProvider.cs
- QilPatternFactory.cs
- EmptyControlCollection.cs
- SystemColors.cs
- SystemMulticastIPAddressInformation.cs
- EventToken.cs
- base64Transforms.cs
- ExpandedWrapper.cs
- EncoderParameter.cs
- MetadataItemCollectionFactory.cs
- SqlProcedureAttribute.cs
- TransformedBitmap.cs
- AspNetSynchronizationContext.cs
- FixUp.cs
- WebBrowserSiteBase.cs
- TokenBasedSetEnumerator.cs
- InheritanceContextChangedEventManager.cs
- _emptywebproxy.cs
- NamedPipeChannelListener.cs
- DefaultBinder.cs
- ListViewItem.cs
- RedistVersionInfo.cs
- DesignerVerb.cs
- PrtTicket_Public.cs
- BitmapEffectDrawingContextState.cs
- BuildManager.cs
- HighlightOverlayGlyph.cs
- XmlComplianceUtil.cs
- TextReader.cs
- WindowsRichEditRange.cs
- Filter.cs
- SerializationStore.cs
- LightweightCodeGenerator.cs
- PersonalizationProviderCollection.cs
- ItemAutomationPeer.cs
- MenuBase.cs
- FilteredAttributeCollection.cs
- TokenBasedSetEnumerator.cs
- BaseCodeDomTreeGenerator.cs
- DataServiceBehavior.cs
- JournalNavigationScope.cs
- DbConnectionPoolGroupProviderInfo.cs
- ClosureBinding.cs
- SmtpReplyReader.cs
- IpcChannel.cs
- DescendentsWalkerBase.cs
- RuleSetBrowserDialog.cs
- RootProfilePropertySettingsCollection.cs
- ExceptionUtil.cs
- RadioButtonPopupAdapter.cs
- UnsafeNativeMethodsPenimc.cs
- StyleCollection.cs
- InvokeGenerator.cs
- SmtpNetworkElement.cs
- XmlReaderSettings.cs
- CachedPathData.cs
- Metadata.cs
- DetailsViewRowCollection.cs
- ServiceDescription.cs
- SqlCacheDependencySection.cs
- ThreadAttributes.cs
- UnmanagedMemoryStreamWrapper.cs
- SecurityKeyUsage.cs
- RelatedEnd.cs
- DecimalConverter.cs
- CTreeGenerator.cs
- DelegateHelpers.Generated.cs
- HttpCookiesSection.cs
- CheckBoxFlatAdapter.cs
- TaiwanLunisolarCalendar.cs
- WindowsContainer.cs
- UTF8Encoding.cs
- WpfKnownTypeInvoker.cs
- XsdDuration.cs
- WebServiceEnumData.cs
- DataGridDesigner.cs
- Block.cs
- ConnectionManagementElement.cs
- GPPOINTF.cs
- EntityContainerEmitter.cs
- OleAutBinder.cs
- RuntimeHelpers.cs