Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Regex / System / Text / RegularExpressions / CompiledRegexRunner.cs / 1305376 / CompiledRegexRunner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Reflection.Emit; #if !SILVERLIGHT 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); } #endif // 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; #if !SILVERLIGHT 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); } #endif // 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
- XPathBinder.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- FileAccessException.cs
- DesignerActionTextItem.cs
- RelationshipType.cs
- WindowsListViewGroup.cs
- SourceFilter.cs
- AppearanceEditorPart.cs
- IdentitySection.cs
- HideDisabledControlAdapter.cs
- EntityDataSourceDesigner.cs
- EventLogPermissionHolder.cs
- SqlNodeAnnotation.cs
- Animatable.cs
- IsolatedStoragePermission.cs
- PeerApplication.cs
- Font.cs
- FilterQueryOptionExpression.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- RecognizeCompletedEventArgs.cs
- DesignUtil.cs
- ConfigurationStrings.cs
- MsmqBindingElementBase.cs
- RenderData.cs
- Quad.cs
- LineUtil.cs
- CopyOnWriteList.cs
- SchemaImporterExtensionElement.cs
- XmlTypeAttribute.cs
- TabControlEvent.cs
- PropertyEntry.cs
- ListParagraph.cs
- DateRangeEvent.cs
- SqlMetaData.cs
- XdrBuilder.cs
- EpmTargetPathSegment.cs
- VisualStyleElement.cs
- XmlSchemaSequence.cs
- DatePicker.cs
- AssemblyUtil.cs
- AmbientLight.cs
- SafeCertificateStore.cs
- StringReader.cs
- BreakRecordTable.cs
- CodeDirectiveCollection.cs
- DataBoundLiteralControl.cs
- BoundPropertyEntry.cs
- XmlMembersMapping.cs
- HtmlTextArea.cs
- CriticalExceptions.cs
- Membership.cs
- PrePrepareMethodAttribute.cs
- NativeWindow.cs
- HtmlButton.cs
- SoapMessage.cs
- HTTPNotFoundHandler.cs
- StringHandle.cs
- HwndSource.cs
- SqlCacheDependencyDatabase.cs
- WebPartVerbsEventArgs.cs
- View.cs
- SiteMapNodeCollection.cs
- GeneralTransform3DTo2DTo3D.cs
- StackSpiller.Bindings.cs
- DeleteHelper.cs
- UnknownMessageReceivedEventArgs.cs
- DBCommand.cs
- AuthorizationPolicyTypeElement.cs
- TableColumn.cs
- Timer.cs
- MultiTargetingUtil.cs
- DbProviderFactory.cs
- DbConnectionPoolOptions.cs
- UInt64Converter.cs
- TraceAsyncResult.cs
- ScrollChrome.cs
- ToolboxItemFilterAttribute.cs
- BinarySerializer.cs
- KeyEventArgs.cs
- _KerberosClient.cs
- ContainerSelectorGlyph.cs
- RoutedEventValueSerializer.cs
- WmlLabelAdapter.cs
- OneToOneMappingSerializer.cs
- GACIdentityPermission.cs
- ResourceReferenceKeyNotFoundException.cs
- BitmapSourceSafeMILHandle.cs
- DataControlFieldCollection.cs
- WebContext.cs
- BufferedWebEventProvider.cs
- TypeElement.cs
- TransformerInfoCollection.cs
- CodeGenerator.cs
- StateItem.cs
- ConfigurationElementCollection.cs
- PathFigureCollection.cs
- SoapReflectionImporter.cs
- SchemaInfo.cs
- NativeMethods.cs
- SectionVisual.cs