Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- MaskedTextProvider.cs
- TaiwanLunisolarCalendar.cs
- Listbox.cs
- ColumnMapTranslator.cs
- ButtonFieldBase.cs
- PeerTransportSecurityElement.cs
- TcpProcessProtocolHandler.cs
- Int64KeyFrameCollection.cs
- MarginsConverter.cs
- MemberCollection.cs
- TdsRecordBufferSetter.cs
- SqlDataSourceTableQuery.cs
- Win32PrintDialog.cs
- RepeatInfo.cs
- LabelInfo.cs
- BitmapSource.cs
- ModelVisual3D.cs
- ModifiableIteratorCollection.cs
- DbMetaDataColumnNames.cs
- CodeGroup.cs
- TraceContext.cs
- StringUtil.cs
- ArgumentOutOfRangeException.cs
- RSACryptoServiceProvider.cs
- MissingManifestResourceException.cs
- TcpTransportSecurityElement.cs
- HostingEnvironmentException.cs
- ImageConverter.cs
- TaskFileService.cs
- GenericsInstances.cs
- CodeTypeMember.cs
- CodeLinePragma.cs
- SuppressIldasmAttribute.cs
- XmlSignatureManifest.cs
- ExpressionNode.cs
- StorageEntitySetMapping.cs
- RecognizerInfo.cs
- CheckPair.cs
- ObjectDataSourceEventArgs.cs
- SmtpDigestAuthenticationModule.cs
- XmlDataProvider.cs
- BitmapEffectvisualstate.cs
- CodeSubDirectory.cs
- StrongNameIdentityPermission.cs
- ScrollBar.cs
- DocumentApplicationJournalEntry.cs
- RecordsAffectedEventArgs.cs
- PerformanceCounterCategory.cs
- _SslStream.cs
- ToolStripSettings.cs
- CodeDOMUtility.cs
- TextSelectionProcessor.cs
- FixedLineResult.cs
- ObjectQueryProvider.cs
- XLinq.cs
- CatalogZone.cs
- SchemaUtility.cs
- DateRangeEvent.cs
- ClientSettingsSection.cs
- DataObject.cs
- MetadataUtilsSmi.cs
- Renderer.cs
- SqlConnectionManager.cs
- Attribute.cs
- Light.cs
- XmlObjectSerializer.cs
- CroppedBitmap.cs
- Panel.cs
- SafeThreadHandle.cs
- WeakReferenceList.cs
- DataGridViewComboBoxCell.cs
- FixedSOMLineRanges.cs
- BitmapDownload.cs
- BitmapDecoder.cs
- StandardRuntimeEnumValidator.cs
- MessageQuerySet.cs
- CodeIdentifiers.cs
- DesignerActionVerbItem.cs
- DataGridViewColumnCollection.cs
- GridItemCollection.cs
- DoubleLinkListEnumerator.cs
- DependencyProperty.cs
- BitmapEffectCollection.cs
- ForceCopyBuildProvider.cs
- ImageClickEventArgs.cs
- MenuBase.cs
- VisualCollection.cs
- parserscommon.cs
- WebBrowserProgressChangedEventHandler.cs
- HtmlInputButton.cs
- CommonDialog.cs
- SessionStateItemCollection.cs
- ObjectSecurity.cs
- KeyGestureConverter.cs
- Buffer.cs
- ProxySimple.cs
- DynamicQueryableWrapper.cs
- CompositeKey.cs
- ColumnBinding.cs
- DiscoveryServerProtocol.cs