Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Region.cs
- ActivityValidationServices.cs
- DrawingContextDrawingContextWalker.cs
- UrlPath.cs
- PageCache.cs
- EnlistmentState.cs
- NamespaceCollection.cs
- CallSiteHelpers.cs
- StrokeNodeData.cs
- XmlSchemaAppInfo.cs
- ConfigurationException.cs
- WebPartZoneAutoFormat.cs
- NetworkStream.cs
- SelectorItemAutomationPeer.cs
- ComponentCollection.cs
- NativeMethods.cs
- Switch.cs
- SQLDoubleStorage.cs
- RequestSecurityToken.cs
- HttpApplicationFactory.cs
- Dump.cs
- DesignerUtility.cs
- CallId.cs
- EditorAttribute.cs
- StringExpressionSet.cs
- ScrollEvent.cs
- DBConnectionString.cs
- StrokeFIndices.cs
- HostAdapter.cs
- ProviderSettings.cs
- CodeFieldReferenceExpression.cs
- WhiteSpaceTrimStringConverter.cs
- ParenthesizePropertyNameAttribute.cs
- SessionChannels.cs
- XmlComment.cs
- unsafeIndexingFilterStream.cs
- UiaCoreProviderApi.cs
- ProtectedProviderSettings.cs
- COSERVERINFO.cs
- GeneralTransform3D.cs
- AssociationType.cs
- UnsafeNativeMethods.cs
- DirectoryRedirect.cs
- SmiSettersStream.cs
- ImmutableObjectAttribute.cs
- SeekStoryboard.cs
- EdmConstants.cs
- DataSourceXmlSerializer.cs
- PairComparer.cs
- ReadOnlyNameValueCollection.cs
- SqlParameterCollection.cs
- SiteMapNodeItem.cs
- CmsUtils.cs
- RawKeyboardInputReport.cs
- tooltip.cs
- _TransmitFileOverlappedAsyncResult.cs
- ReferentialConstraint.cs
- FileClassifier.cs
- CallbackBehaviorAttribute.cs
- ContextMenuStripActionList.cs
- CheckBoxPopupAdapter.cs
- ContravarianceAdapter.cs
- UniqueID.cs
- EntityTypeEmitter.cs
- TextEditorDragDrop.cs
- DataComponentGenerator.cs
- PriorityChain.cs
- TableHeaderCell.cs
- PointCollectionValueSerializer.cs
- XPathMultyIterator.cs
- RelationalExpressions.cs
- AudioSignalProblemOccurredEventArgs.cs
- XmlWriterTraceListener.cs
- EdmScalarPropertyAttribute.cs
- GenericsInstances.cs
- XmlILModule.cs
- EntitySetBase.cs
- designeractionlistschangedeventargs.cs
- VirtualPathUtility.cs
- TcpConnectionPoolSettings.cs
- DataBoundControlHelper.cs
- BeginStoryboard.cs
- TypeHelpers.cs
- WebBrowserNavigatingEventHandler.cs
- FloaterBaseParagraph.cs
- ListDataBindEventArgs.cs
- PasswordPropertyTextAttribute.cs
- ListControlStringCollectionEditor.cs
- ActiveXSite.cs
- ProgressPage.cs
- LicenseManager.cs
- DataColumnCollection.cs
- WaitHandle.cs
- X509IssuerSerialKeyIdentifierClause.cs
- Filter.cs
- AQNBuilder.cs
- CollectionChangeEventArgs.cs
- SmtpCommands.cs
- FlowchartStart.xaml.cs
- TileBrush.cs