Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SymLanguageType.cs
- DataGridViewBand.cs
- AuthorizationRuleCollection.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- CounterCreationDataCollection.cs
- PackageStore.cs
- XmlSchemaGroupRef.cs
- DetailsViewPageEventArgs.cs
- TextLineResult.cs
- remotingproxy.cs
- SystemIPv4InterfaceProperties.cs
- MenuTracker.cs
- LinearGradientBrush.cs
- FrameDimension.cs
- Pkcs9Attribute.cs
- CompiledRegexRunner.cs
- ValueType.cs
- cache.cs
- GiveFeedbackEvent.cs
- TextBoxBase.cs
- DataServiceRequest.cs
- FusionWrap.cs
- Trace.cs
- ExecutionScope.cs
- StreamWriter.cs
- ImportContext.cs
- DbUpdateCommandTree.cs
- HtmlHistory.cs
- ReferenceService.cs
- _LocalDataStore.cs
- JavaScriptString.cs
- HtmlTableCell.cs
- BuildProvider.cs
- SecUtil.cs
- AudioSignalProblemOccurredEventArgs.cs
- TCPListener.cs
- TrackBar.cs
- WrappedIUnknown.cs
- GZipStream.cs
- PrinterUnitConvert.cs
- Internal.cs
- PropertyPath.cs
- IPGlobalProperties.cs
- SystemDiagnosticsSection.cs
- PhysicalFontFamily.cs
- ItemCheckEvent.cs
- ExpressionBindingsDialog.cs
- ConstraintStruct.cs
- ColumnMapProcessor.cs
- SetterBase.cs
- GradientStop.cs
- parserscommon.cs
- DataSysAttribute.cs
- ClosureBinding.cs
- PackageRelationshipSelector.cs
- ControlBindingsCollection.cs
- _BaseOverlappedAsyncResult.cs
- HwndSource.cs
- XhtmlBasicLinkAdapter.cs
- XmlResolver.cs
- SeekableMessageNavigator.cs
- ToolStripDropDownItem.cs
- StringInfo.cs
- DataGridCell.cs
- ElementsClipboardData.cs
- WindowsHyperlink.cs
- DoubleLink.cs
- FormViewDesigner.cs
- HTMLTagNameToTypeMapper.cs
- DelegateTypeInfo.cs
- MessageQueueEnumerator.cs
- DrawingCollection.cs
- PropertyValueChangedEvent.cs
- XPathParser.cs
- SystemKeyConverter.cs
- QueryableDataSource.cs
- TrackingMemoryStream.cs
- Parser.cs
- SubpageParaClient.cs
- ErrorLog.cs
- LicenseManager.cs
- IItemContainerGenerator.cs
- InstallerTypeAttribute.cs
- ArrayConverter.cs
- HostingEnvironmentException.cs
- XsltException.cs
- SignedInfo.cs
- Message.cs
- OdbcUtils.cs
- ObjectConverter.cs
- TextEditorCopyPaste.cs
- MouseButtonEventArgs.cs
- WebRequestModuleElement.cs
- RemoteWebConfigurationHostStream.cs
- ColumnResizeAdorner.cs
- PictureBox.cs
- XmlSchemaObjectCollection.cs
- GridViewDeleteEventArgs.cs
- DbParameterHelper.cs
- MdbDataFileEditor.cs