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
- RSAPKCS1SignatureFormatter.cs
- EnumUnknown.cs
- Model3DGroup.cs
- SafeArrayTypeMismatchException.cs
- OleDbConnectionFactory.cs
- BufferAllocator.cs
- FlowDocumentView.cs
- Debug.cs
- SiteMapPath.cs
- HttpAsyncResult.cs
- ConfigXmlReader.cs
- TextEditorSelection.cs
- RelationshipType.cs
- DefaultParameterValueAttribute.cs
- SpecialNameAttribute.cs
- SystemColors.cs
- ToolStripDesigner.cs
- CancelEventArgs.cs
- LinqDataSourceEditData.cs
- _HTTPDateParse.cs
- HtmlTableCellCollection.cs
- SharedStatics.cs
- DataServiceResponse.cs
- SqlFunctions.cs
- CacheModeValueSerializer.cs
- FileStream.cs
- LinkLabel.cs
- SiteMap.cs
- X509CertificateCollection.cs
- DataGridViewToolTip.cs
- WebBrowsableAttribute.cs
- ButtonColumn.cs
- cookiecollection.cs
- XNodeValidator.cs
- HttpRuntimeSection.cs
- ITreeGenerator.cs
- VectorCollection.cs
- TranslateTransform3D.cs
- SqlMethodCallConverter.cs
- MethodBody.cs
- OrderByLifter.cs
- EventTrigger.cs
- PermissionSetTriple.cs
- HtmlButton.cs
- WhitespaceRuleLookup.cs
- ArraySegment.cs
- ViewStateModeByIdAttribute.cs
- Socket.cs
- DynamicDataRoute.cs
- FrameworkPropertyMetadata.cs
- EntityDesignerBuildProvider.cs
- ChangeTracker.cs
- EventEntry.cs
- TypeProvider.cs
- ChtmlLinkAdapter.cs
- GenerateScriptTypeAttribute.cs
- WSSecureConversationFeb2005.cs
- SafeCoTaskMem.cs
- XamlRtfConverter.cs
- SByteStorage.cs
- ListViewPagedDataSource.cs
- XmlQueryCardinality.cs
- SortDescriptionCollection.cs
- Transform.cs
- Span.cs
- SqlDelegatedTransaction.cs
- While.cs
- StrongName.cs
- Deserializer.cs
- DataSourceExpression.cs
- DependencyPropertyKind.cs
- Splitter.cs
- TextSerializer.cs
- NativeCompoundFileAPIs.cs
- DateTimeOffset.cs
- LicenseContext.cs
- CurrencyManager.cs
- XamlToRtfParser.cs
- SelectionProcessor.cs
- Peer.cs
- ControlSerializer.cs
- MetadataCache.cs
- StatusBarPanel.cs
- DataBinder.cs
- LinkedList.cs
- GenericIdentity.cs
- EntityContainerAssociationSetEnd.cs
- RouteItem.cs
- EndpointIdentity.cs
- ExceptionList.cs
- RectangleF.cs
- ToolStripDropDownButton.cs
- UserMapPath.cs
- IisTraceListener.cs
- ContentControl.cs
- PenCursorManager.cs
- EndpointDiscoveryMetadata.cs
- OleDbWrapper.cs
- SqlConnectionPoolGroupProviderInfo.cs
- NavigatorInvalidBodyAccessException.cs