Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SqlFormatter.cs
- WebPartEditorOkVerb.cs
- UrlEncodedParameterWriter.cs
- SourceFileBuildProvider.cs
- AnimationStorage.cs
- DesignerCommandAdapter.cs
- NativeMethods.cs
- BasicBrowserDialog.cs
- XmlQualifiedName.cs
- TemplateControl.cs
- EntityTransaction.cs
- ContainerFilterService.cs
- OdbcReferenceCollection.cs
- ClientConfigurationHost.cs
- KnowledgeBase.cs
- ColorConvertedBitmap.cs
- EntityClientCacheEntry.cs
- DecoderExceptionFallback.cs
- SafeFileMappingHandle.cs
- EventProperty.cs
- StringUtil.cs
- ObjectDataSource.cs
- listitem.cs
- DiscardableAttribute.cs
- PropertyCondition.cs
- iisPickupDirectory.cs
- ToolStripRenderEventArgs.cs
- ComboBox.cs
- XmlSchemaComplexType.cs
- SwitchAttribute.cs
- util.cs
- UserPreferenceChangingEventArgs.cs
- PaperSource.cs
- PeerService.cs
- ProxyFragment.cs
- ConfigurationManager.cs
- EventLog.cs
- OdbcCommandBuilder.cs
- X509CertificateTrustedIssuerElementCollection.cs
- oledbmetadatacolumnnames.cs
- SrgsOneOf.cs
- SoapCodeExporter.cs
- DispatcherOperation.cs
- FastPropertyAccessor.cs
- DataGridAutoFormat.cs
- DbConnectionOptions.cs
- SynchronizingStream.cs
- DescendantOverDescendantQuery.cs
- OdbcTransaction.cs
- StorageConditionPropertyMapping.cs
- BamlVersionHeader.cs
- MessageBox.cs
- ThemeDirectoryCompiler.cs
- XPathDocumentBuilder.cs
- DockPatternIdentifiers.cs
- DesignerCategoryAttribute.cs
- WizardPanelChangingEventArgs.cs
- TreeNodeSelectionProcessor.cs
- GenericPrincipal.cs
- IPEndPoint.cs
- RadioButtonBaseAdapter.cs
- SoapMessage.cs
- ClientUtils.cs
- CanExpandCollapseAllConverter.cs
- InvokeHandlers.cs
- TaskbarItemInfo.cs
- NumericUpDownAcceleration.cs
- Parser.cs
- BindingMAnagerBase.cs
- OptimizedTemplateContentHelper.cs
- IsolatedStorage.cs
- BeginSelectCardRequest.cs
- AuthStoreRoleProvider.cs
- Triangle.cs
- StorageSetMapping.cs
- RbTree.cs
- TextRangeProviderWrapper.cs
- FileUtil.cs
- RightsManagementInformation.cs
- DynamicDocumentPaginator.cs
- Decimal.cs
- FormViewInsertedEventArgs.cs
- SQLGuid.cs
- Int32Rect.cs
- ListSortDescriptionCollection.cs
- Switch.cs
- ProtocolViolationException.cs
- ToolboxControl.cs
- PerfCounters.cs
- IsolatedStorage.cs
- remotingproxy.cs
- TextSpan.cs
- SiteMapNodeItem.cs
- RadialGradientBrush.cs
- DataTableCollection.cs
- HtmlForm.cs
- UnionCodeGroup.cs
- FlowDocumentReader.cs
- Separator.cs
- TypeToArgumentTypeConverter.cs