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
- XmlSchemaAll.cs
- ColumnTypeConverter.cs
- ServiceBusyException.cs
- VBCodeProvider.cs
- WebControlsSection.cs
- CodeRemoveEventStatement.cs
- PathSegment.cs
- MetadataArtifactLoaderCompositeResource.cs
- KeySplineConverter.cs
- MustUnderstandSoapException.cs
- Msec.cs
- DataGrid.cs
- MultiBindingExpression.cs
- FixedSOMImage.cs
- AppDomainAttributes.cs
- FrameworkTemplate.cs
- ASCIIEncoding.cs
- DataTemplateSelector.cs
- LoginStatusDesigner.cs
- XmlExceptionHelper.cs
- DefaultIfEmptyQueryOperator.cs
- XmlAutoDetectWriter.cs
- SBCSCodePageEncoding.cs
- FontStyleConverter.cs
- InnerItemCollectionView.cs
- Model3DGroup.cs
- ExecutionEngineException.cs
- QueryTreeBuilder.cs
- GestureRecognitionResult.cs
- MergeEnumerator.cs
- NameValueCollection.cs
- GeneralTransform3DGroup.cs
- ProcessHostConfigUtils.cs
- NamedPipeHostedTransportConfiguration.cs
- SystemWebExtensionsSectionGroup.cs
- BoundColumn.cs
- ActivityDesignerLayoutSerializers.cs
- documentsequencetextcontainer.cs
- PropertyGridEditorPart.cs
- UdpChannelListener.cs
- Page.cs
- ZipPackage.cs
- assertwrapper.cs
- SymbolPair.cs
- UrlMappingsSection.cs
- ZipIOCentralDirectoryBlock.cs
- OleDragDropHandler.cs
- TransformPatternIdentifiers.cs
- TypeContext.cs
- ViewGenerator.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DrawingGroup.cs
- SmtpException.cs
- TypeForwardedToAttribute.cs
- Brushes.cs
- NotifyIcon.cs
- LogRecordSequence.cs
- PrinterSettings.cs
- DBConcurrencyException.cs
- SQLInt32Storage.cs
- Msmq.cs
- BatchServiceHost.cs
- XmlSortKeyAccumulator.cs
- QuaternionConverter.cs
- StringValidator.cs
- DynamicActivityXamlReader.cs
- ConcurrencyBehavior.cs
- HttpConfigurationSystem.cs
- Trace.cs
- ResourceContainer.cs
- InlinedAggregationOperator.cs
- SerializationEventsCache.cs
- FileUtil.cs
- SizeF.cs
- GradientBrush.cs
- HostingEnvironmentException.cs
- PointAnimationUsingPath.cs
- ServiceDescriptionSerializer.cs
- SimpleTableProvider.cs
- Dictionary.cs
- PreviewPrintController.cs
- EntityParameter.cs
- ZipIOCentralDirectoryFileHeader.cs
- CompiledIdentityConstraint.cs
- ProfileManager.cs
- FamilyCollection.cs
- ConnectionsZone.cs
- KeyInfo.cs
- Vector3DAnimationUsingKeyFrames.cs
- PeerIPHelper.cs
- ExpressionBuilderContext.cs
- SplineQuaternionKeyFrame.cs
- PerformanceCounterPermissionEntry.cs
- MarshalByValueComponent.cs
- SafeSecurityHelper.cs
- CancelEventArgs.cs
- returneventsaver.cs
- DependencySource.cs
- RouteValueExpressionBuilder.cs
- ValueCollectionParameterReader.cs