Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ISO2022Encoding.cs
- DataBoundControl.cs
- CapabilitiesSection.cs
- StructuredTypeInfo.cs
- NCryptSafeHandles.cs
- TraceContextEventArgs.cs
- Range.cs
- TcpTransportBindingElement.cs
- XPathNodeHelper.cs
- QuadraticBezierSegment.cs
- StylesEditorDialog.cs
- Double.cs
- ExpressionBuilder.cs
- Nodes.cs
- Light.cs
- StyleTypedPropertyAttribute.cs
- TakeQueryOptionExpression.cs
- BamlReader.cs
- Attribute.cs
- LinkClickEvent.cs
- TraceInternal.cs
- ReflectionServiceProvider.cs
- RootBuilder.cs
- PersonalizableAttribute.cs
- QuaternionAnimation.cs
- CssStyleCollection.cs
- MobileListItemCollection.cs
- DataGridViewBindingCompleteEventArgs.cs
- COM2PictureConverter.cs
- ToolStripGrip.cs
- UndoManager.cs
- ResolveDuplex11AsyncResult.cs
- WebSysDefaultValueAttribute.cs
- Propagator.ExtentPlaceholderCreator.cs
- AttributeQuery.cs
- BaseInfoTable.cs
- BamlCollectionHolder.cs
- ThicknessKeyFrameCollection.cs
- TimeoutConverter.cs
- AutomationElementIdentifiers.cs
- StringCollection.cs
- LayoutUtils.cs
- ProfileModule.cs
- NonVisualControlAttribute.cs
- GlyphRun.cs
- userdatakeys.cs
- DynamicQueryableWrapper.cs
- DateTimeFormatInfo.cs
- ContextMenuService.cs
- ScriptingProfileServiceSection.cs
- FormatterConverter.cs
- CustomCategoryAttribute.cs
- FileSystemInfo.cs
- ObjectStateManager.cs
- ColumnWidthChangingEvent.cs
- WebPermission.cs
- WebHostedComPlusServiceHost.cs
- ConstraintCollection.cs
- TemplateXamlTreeBuilder.cs
- ObjectListFieldCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- XsdDuration.cs
- SQLBinary.cs
- MimeObjectFactory.cs
- MatrixIndependentAnimationStorage.cs
- PackageRelationshipCollection.cs
- HotCommands.cs
- SqlConnectionStringBuilder.cs
- RadioButton.cs
- RelationshipSet.cs
- Thread.cs
- DataGridTextBoxColumn.cs
- DiscreteKeyFrames.cs
- x509store.cs
- SocketException.cs
- FacetChecker.cs
- DetailsViewPagerRow.cs
- CodeDirectoryCompiler.cs
- EntityDesignerDataSourceView.cs
- ListViewGroupConverter.cs
- CollectionDataContract.cs
- MultipartIdentifier.cs
- AttachmentCollection.cs
- QilFunction.cs
- Binding.cs
- SqlGenerator.cs
- AncillaryOps.cs
- QueueAccessMode.cs
- ImageMetadata.cs
- IISMapPath.cs
- PrintDialog.cs
- DataGridViewCellStyleChangedEventArgs.cs
- DetailsViewDeletedEventArgs.cs
- WindowAutomationPeer.cs
- TemplateColumn.cs
- UnorderedHashRepartitionStream.cs
- ExpressionDumper.cs
- ImageDrawing.cs
- Knowncolors.cs
- PointValueSerializer.cs