Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataGridItemEventArgs.cs
- Menu.cs
- ReflectEventDescriptor.cs
- EventLogLink.cs
- FlowDocument.cs
- NavigationService.cs
- DbProviderManifest.cs
- SizeF.cs
- CryptoHelper.cs
- ButtonBase.cs
- PriorityChain.cs
- XmlRawWriter.cs
- ImageKeyConverter.cs
- WbemException.cs
- SAPIEngineTypes.cs
- CollectionContainer.cs
- ButtonStandardAdapter.cs
- WinEventWrap.cs
- FastEncoder.cs
- InitialServerConnectionReader.cs
- OrderedDictionaryStateHelper.cs
- SelectorAutomationPeer.cs
- CheckableControlBaseAdapter.cs
- ConsumerConnectionPointCollection.cs
- UrlPath.cs
- IPEndPoint.cs
- SQLByte.cs
- PageCatalogPartDesigner.cs
- PagePropertiesChangingEventArgs.cs
- RemoteCryptoRsaServiceProvider.cs
- SupportsEventValidationAttribute.cs
- XmlNamespaceMapping.cs
- ListViewTableRow.cs
- TemplateColumn.cs
- WindowsImpersonationContext.cs
- ClusterRegistryConfigurationProvider.cs
- ProxyAttribute.cs
- CatalogZone.cs
- ServiceModelSecurityTokenTypes.cs
- SchemaImporter.cs
- OdbcPermission.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- UIPermission.cs
- XmlBoundElement.cs
- BufferAllocator.cs
- DataGridViewToolTip.cs
- ErrorBehavior.cs
- WCFServiceClientProxyGenerator.cs
- MexBindingBindingCollectionElement.cs
- ParameterBuilder.cs
- CompressEmulationStream.cs
- shaperfactory.cs
- TypedRowHandler.cs
- RecordsAffectedEventArgs.cs
- EntityCodeGenerator.cs
- StandardOleMarshalObject.cs
- ApplicationSecurityManager.cs
- NativeMethods.cs
- EdmSchemaError.cs
- wgx_sdk_version.cs
- MediaPlayerState.cs
- BufferedReceiveManager.cs
- ProvidePropertyAttribute.cs
- MenuItemStyle.cs
- TrackBar.cs
- Rect.cs
- EnumValidator.cs
- InputProcessorProfiles.cs
- CodeSnippetTypeMember.cs
- IndentTextWriter.cs
- XmlSequenceWriter.cs
- XPathParser.cs
- FocusManager.cs
- ResourceContainer.cs
- ButtonFieldBase.cs
- TransformerInfoCollection.cs
- UpdateTracker.cs
- assemblycache.cs
- RelationshipConverter.cs
- ImageButton.cs
- SQLBytes.cs
- AdjustableArrowCap.cs
- PrintDocument.cs
- Merger.cs
- _SSPISessionCache.cs
- ColumnHeaderConverter.cs
- OperandQuery.cs
- HttpClientProtocol.cs
- xmlglyphRunInfo.cs
- VirtualPathProvider.cs
- FrameworkElement.cs
- ClonableStack.cs
- XmlnsCompatibleWithAttribute.cs
- HttpApplicationFactory.cs
- DBSchemaRow.cs
- IndexOutOfRangeException.cs
- ScrollItemPattern.cs
- ImageConverter.cs
- OdbcErrorCollection.cs
- ExtensibleClassFactory.cs