Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Regex / System / Text / RegularExpressions / CompiledRegexRunnerFactory.cs / 1 / CompiledRegexRunnerFactory.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Reflection.Emit; using System.Diagnostics; using System.Security.Permissions; namespace System.Text.RegularExpressions { internal sealed class CompiledRegexRunnerFactory : RegexRunnerFactory { DynamicMethod goMethod; DynamicMethod findFirstCharMethod; DynamicMethod initTrackCountMethod; internal CompiledRegexRunnerFactory (DynamicMethod go, DynamicMethod firstChar, DynamicMethod trackCount) { this.goMethod = go; this.findFirstCharMethod = firstChar; this.initTrackCountMethod = trackCount; //Debug.Assert(goMethod != null && findFirstCharMethod != null && initTrackCountMethod != null, "can't be null"); } protected internal override RegexRunner CreateInstance() { CompiledRegexRunner runner = new CompiledRegexRunner(); new ReflectionPermission(PermissionState.Unrestricted).Assert(); runner.SetDelegates((NoParamDelegate) goMethod.CreateDelegate(typeof(NoParamDelegate)), (FindFirstCharDelegate) findFirstCharMethod.CreateDelegate(typeof(FindFirstCharDelegate)), (NoParamDelegate) initTrackCountMethod.CreateDelegate(typeof(NoParamDelegate))); return runner; } } internal delegate RegexRunner CreateInstanceDelegate(); }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegexCompiler.cs
- HMACSHA384.cs
- StoreItemCollection.Loader.cs
- xamlnodes.cs
- HttpModuleActionCollection.cs
- XmlTextReaderImplHelpers.cs
- FacetChecker.cs
- WindowsListView.cs
- MenuItemBinding.cs
- NativeRightsManagementAPIsStructures.cs
- ControlPager.cs
- ProtocolsConfigurationEntry.cs
- BoundColumn.cs
- DataBindingCollectionEditor.cs
- FormsAuthentication.cs
- PolicyVersion.cs
- DataGridViewCellParsingEventArgs.cs
- Encoder.cs
- DPCustomTypeDescriptor.cs
- XamlDesignerSerializationManager.cs
- DesignerVerbCollection.cs
- ControlAdapter.cs
- CacheMemory.cs
- Publisher.cs
- ProfileGroupSettings.cs
- GuidelineCollection.cs
- ReadOnlyAttribute.cs
- DataObjectAttribute.cs
- XmlToDatasetMap.cs
- UpDownBase.cs
- EnumMemberAttribute.cs
- TextRenderer.cs
- DBSqlParser.cs
- InkCanvas.cs
- Policy.cs
- HttpSessionStateBase.cs
- ProjectionPlan.cs
- ControlDesigner.cs
- HwndHost.cs
- AttributeQuery.cs
- NativeActivityContext.cs
- AppliesToBehaviorDecisionTable.cs
- GradientStop.cs
- TdsParserStateObject.cs
- TcpProcessProtocolHandler.cs
- Point3DAnimationUsingKeyFrames.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- XDeferredAxisSource.cs
- Oci.cs
- UrlMappingCollection.cs
- QilStrConcatenator.cs
- EntityDataSourceMemberPath.cs
- KeyNotFoundException.cs
- OptimisticConcurrencyException.cs
- EastAsianLunisolarCalendar.cs
- SettingsAttributes.cs
- AssemblyNameProxy.cs
- RepeatInfo.cs
- UTF8Encoding.cs
- PageThemeBuildProvider.cs
- PageParser.cs
- TextBoxView.cs
- ObjectCache.cs
- Point3D.cs
- FtpWebRequest.cs
- IteratorDescriptor.cs
- GridViewDeleteEventArgs.cs
- DeploymentSection.cs
- MergeFailedEvent.cs
- TreeNodeCollectionEditor.cs
- ProtocolsConfiguration.cs
- SvcMapFileSerializer.cs
- EngineSite.cs
- DoubleLinkListEnumerator.cs
- RawStylusInputCustomData.cs
- __Filters.cs
- Timeline.cs
- UrlPropertyAttribute.cs
- RenderCapability.cs
- ServiceContractViewControl.Designer.cs
- DataSourceDescriptorCollection.cs
- KerberosSecurityTokenProvider.cs
- ApplicationBuildProvider.cs
- ListControl.cs
- UIElementParagraph.cs
- DBBindings.cs
- CallbackException.cs
- HtmlTableRowCollection.cs
- HandledMouseEvent.cs
- DSGeneratorProblem.cs
- JapaneseCalendar.cs
- ObjectSelectorEditor.cs
- DataGridViewLinkColumn.cs
- FontUnitConverter.cs
- PropertyEmitterBase.cs
- MouseOverProperty.cs
- TypeDescriptorContext.cs
- SqlCacheDependencyDatabase.cs
- MatrixTransform.cs
- TextRunCache.cs