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
- TrackingMemoryStreamFactory.cs
- DelimitedListTraceListener.cs
- WebPartCatalogAddVerb.cs
- BitmapEffectInputConnector.cs
- CodePropertyReferenceExpression.cs
- DomNameTable.cs
- TraceLevelStore.cs
- ProcessHost.cs
- SubpageParagraph.cs
- HostedTcpTransportManager.cs
- RenderDataDrawingContext.cs
- BrowserInteropHelper.cs
- IndexedEnumerable.cs
- InstanceData.cs
- SqlBuilder.cs
- DiscoveryDocumentLinksPattern.cs
- SemaphoreSecurity.cs
- DependencyPropertyChangedEventArgs.cs
- ColumnResizeUndoUnit.cs
- MeasurementDCInfo.cs
- CheckBoxField.cs
- MemberAccessException.cs
- DataServiceQueryException.cs
- JsonDeserializer.cs
- FreezableCollection.cs
- CursorConverter.cs
- CodeAttributeDeclaration.cs
- InternalSafeNativeMethods.cs
- TreeView.cs
- TemplateKeyConverter.cs
- ValidationHelpers.cs
- EmptyReadOnlyDictionaryInternal.cs
- safesecurityhelperavalon.cs
- ImpersonationContext.cs
- SystemIcmpV4Statistics.cs
- Crc32Helper.cs
- ValidationPropertyAttribute.cs
- TextEvent.cs
- HtmlTable.cs
- LineGeometry.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- SafeNativeMethodsMilCoreApi.cs
- RemoveStoryboard.cs
- CodeAttributeDeclaration.cs
- XmlnsCache.cs
- HiddenField.cs
- AssociationType.cs
- PermissionSetTriple.cs
- ConfigViewGenerator.cs
- FacetValues.cs
- CoordinationService.cs
- OperatorExpressions.cs
- SoundPlayer.cs
- LocalizationParserHooks.cs
- ListViewCancelEventArgs.cs
- SerializerDescriptor.cs
- _ConnectOverlappedAsyncResult.cs
- SimpleBitVector32.cs
- ResXBuildProvider.cs
- SqlBooleanMismatchVisitor.cs
- BuildManagerHost.cs
- TypeSystem.cs
- ResourceReferenceExpression.cs
- DynamicActionMessageFilter.cs
- SqlClientPermission.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataViewListener.cs
- ErrorTableItemStyle.cs
- BufferedResponseStream.cs
- URLBuilder.cs
- ThicknessAnimationBase.cs
- SortAction.cs
- DoubleAnimationBase.cs
- SvcMapFileSerializer.cs
- DependentList.cs
- RemoveFromCollection.cs
- XNodeValidator.cs
- BaseValidator.cs
- SslStreamSecurityElement.cs
- Soap12FormatExtensions.cs
- ListItem.cs
- DataServiceExpressionVisitor.cs
- DataGridColumnHeaderCollection.cs
- SingleObjectCollection.cs
- DependencyPropertyKind.cs
- HWStack.cs
- XmlCustomFormatter.cs
- DataViewSettingCollection.cs
- NegatedCellConstant.cs
- ItemsPanelTemplate.cs
- SystemResourceHost.cs
- ItemCollection.cs
- UnauthorizedWebPart.cs
- InputScopeConverter.cs
- FixedLineResult.cs
- BinaryFormatter.cs
- TitleStyle.cs
- BooleanFacetDescriptionElement.cs
- InputScopeConverter.cs
- OlePropertyStructs.cs