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
- BatchWriter.cs
- _UriTypeConverter.cs
- OdbcCommand.cs
- InternalPermissions.cs
- TextViewSelectionProcessor.cs
- Model3D.cs
- TextServicesCompartmentContext.cs
- Pair.cs
- ContentPosition.cs
- WpfKnownType.cs
- FieldInfo.cs
- VisualTreeUtils.cs
- OrderByBuilder.cs
- ValidationPropertyAttribute.cs
- CallbackHandler.cs
- XmlSchemaComplexType.cs
- UIElement3D.cs
- COM2ExtendedUITypeEditor.cs
- DynamicQueryStringParameter.cs
- ScriptDescriptor.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ChildrenQuery.cs
- WorkflowInstanceExtensionManager.cs
- DelegatingTypeDescriptionProvider.cs
- EntityDataReader.cs
- UnionExpr.cs
- Polygon.cs
- isolationinterop.cs
- MenuItemCollection.cs
- HostedTransportConfigurationManager.cs
- Equal.cs
- DataTransferEventArgs.cs
- HyperLinkField.cs
- SQLUtility.cs
- Schema.cs
- CuspData.cs
- BoundField.cs
- StrokeSerializer.cs
- EdmSchemaError.cs
- DataGridItemCollection.cs
- CaretElement.cs
- UrlAuthFailedErrorFormatter.cs
- UrlMapping.cs
- WaitHandle.cs
- AsymmetricKeyExchangeFormatter.cs
- BaseHashHelper.cs
- Mapping.cs
- ExceptionHandler.cs
- ImageUrlEditor.cs
- SendMailErrorEventArgs.cs
- PackageRelationshipSelector.cs
- GridItemProviderWrapper.cs
- Int32CAMarshaler.cs
- PresentationTraceSources.cs
- ArithmeticLiteral.cs
- DoubleAnimationBase.cs
- SQLSingle.cs
- FactoryRecord.cs
- GatewayIPAddressInformationCollection.cs
- XmlValueConverter.cs
- JsonFormatReaderGenerator.cs
- DataGridCaption.cs
- PeerInvitationResponse.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- StylusDownEventArgs.cs
- TableRowGroup.cs
- CompiledQueryCacheKey.cs
- MultiSelectRootGridEntry.cs
- InputMethodStateTypeInfo.cs
- KeyManager.cs
- CannotUnloadAppDomainException.cs
- ResourcesGenerator.cs
- AnnotationHelper.cs
- AuthenticationConfig.cs
- NativeMethods.cs
- ObjectDataSourceEventArgs.cs
- OleDbParameterCollection.cs
- DmlSqlGenerator.cs
- Attributes.cs
- ZipPackagePart.cs
- XmlBinaryWriter.cs
- SByteStorage.cs
- SqlStatistics.cs
- ExceptionUtil.cs
- WindowsAuthenticationEventArgs.cs
- FileLogRecordEnumerator.cs
- SimpleType.cs
- XmlElementAttributes.cs
- ModelUIElement3D.cs
- ToolStripDropDownButton.cs
- xamlnodes.cs
- RsaSecurityKey.cs
- BitmapEffectInputData.cs
- ComponentRenameEvent.cs
- TypeListConverter.cs
- PolicyValidationException.cs
- InstanceDataCollection.cs
- HttpClientCredentialType.cs
- mongolianshape.cs
- ParallelEnumerable.cs