Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventNotify.cs
- SmiEventSink_DeferedProcessing.cs
- CustomError.cs
- WebPartManagerInternals.cs
- SoapSchemaMember.cs
- WindowsSolidBrush.cs
- Queue.cs
- BindingMAnagerBase.cs
- XmlEncodedRawTextWriter.cs
- JapaneseLunisolarCalendar.cs
- MarkupCompiler.cs
- InternalConfigRoot.cs
- CheckedListBox.cs
- ControlPropertyNameConverter.cs
- HttpRuntimeSection.cs
- DiscoveryServerProtocol.cs
- SpeechDetectedEventArgs.cs
- DesignerFrame.cs
- ControlEvent.cs
- RulePatternOps.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DesignerMetadata.cs
- AssemblyCache.cs
- DataGridAddNewRow.cs
- StrokeIntersection.cs
- CodeDirectiveCollection.cs
- NotifyIcon.cs
- XmlLanguageConverter.cs
- ExtractedStateEntry.cs
- GZipDecoder.cs
- DoubleAnimationUsingKeyFrames.cs
- SqlProviderUtilities.cs
- TextRangeAdaptor.cs
- ApplicationSecurityInfo.cs
- CodeTypeReferenceExpression.cs
- StrokeSerializer.cs
- XmlChildEnumerator.cs
- AttachmentCollection.cs
- RSAPKCS1SignatureFormatter.cs
- Parser.cs
- PointLightBase.cs
- RectAnimationClockResource.cs
- QuaternionIndependentAnimationStorage.cs
- PropertyStore.cs
- TrustLevelCollection.cs
- UrlAuthorizationModule.cs
- TableLayoutSettings.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- PixelShader.cs
- BackEase.cs
- MonthCalendar.cs
- StylusDevice.cs
- ScrollBarRenderer.cs
- XMLSchema.cs
- UnaryNode.cs
- URI.cs
- TextServicesDisplayAttribute.cs
- HttpPostedFile.cs
- EdmConstants.cs
- ListBoxChrome.cs
- CalculatedColumn.cs
- XomlCompiler.cs
- Viewport3DAutomationPeer.cs
- NonClientArea.cs
- TypeDescriptionProvider.cs
- Pts.cs
- ConnectionInterfaceCollection.cs
- CqlLexerHelpers.cs
- LogExtentCollection.cs
- Span.cs
- DefinitionProperties.cs
- InstancePersistenceException.cs
- BinaryFormatterWriter.cs
- TextBounds.cs
- FlowLayoutSettings.cs
- ChannelManager.cs
- ProcessHost.cs
- COM2AboutBoxPropertyDescriptor.cs
- _SSPISessionCache.cs
- NavigatorInput.cs
- ControlBuilder.cs
- MatrixConverter.cs
- HttpServerVarsCollection.cs
- Ops.cs
- FullTextState.cs
- ProviderCommandInfoUtils.cs
- GeneralTransform3DGroup.cs
- CodeParameterDeclarationExpressionCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- XmlSerializer.cs
- DesignerProperties.cs
- EncoderBestFitFallback.cs
- ListQueryResults.cs
- SessionParameter.cs
- StringValidator.cs
- TemplatePartAttribute.cs
- HtmlElementCollection.cs
- VsPropertyGrid.cs
- TokenBasedSetEnumerator.cs
- MimeWriter.cs