Code:
/ FX-1434 / FX-1434 / 1.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
- FrameworkElementFactory.cs
- XmlHierarchicalEnumerable.cs
- DtrList.cs
- XPathDocumentIterator.cs
- RectIndependentAnimationStorage.cs
- HttpRequestCacheValidator.cs
- DocumentSchemaValidator.cs
- ReadOnlyHierarchicalDataSource.cs
- PreloadedPackages.cs
- TreeNodeCollection.cs
- EntityStoreSchemaFilterEntry.cs
- DeclaredTypeValidator.cs
- EditCommandColumn.cs
- TextElementCollection.cs
- RequestChannelBinder.cs
- HostedImpersonationContext.cs
- RegexInterpreter.cs
- InstanceDescriptor.cs
- ConnectionConsumerAttribute.cs
- DataGridItemCollection.cs
- ArrayList.cs
- XmlSchemaComplexType.cs
- TimerElapsedEvenArgs.cs
- QueryInterceptorAttribute.cs
- ColorBlend.cs
- MemberJoinTreeNode.cs
- _NativeSSPI.cs
- SqlGenericUtil.cs
- XmlILAnnotation.cs
- SqlProviderManifest.cs
- XMLDiffLoader.cs
- UrlPath.cs
- StickyNoteAnnotations.cs
- WebPartConnectionsConnectVerb.cs
- RoleGroup.cs
- ConnectionManagementSection.cs
- PolyBezierSegment.cs
- IriParsingElement.cs
- RegexInterpreter.cs
- SrgsSubset.cs
- SecurityException.cs
- TrackingWorkflowEventArgs.cs
- SimpleWorkerRequest.cs
- WinEventTracker.cs
- BamlBinaryWriter.cs
- Int32AnimationUsingKeyFrames.cs
- FormsAuthenticationUser.cs
- uribuilder.cs
- QueryableDataSourceEditData.cs
- ZipIOCentralDirectoryBlock.cs
- FontDriver.cs
- ToolZoneDesigner.cs
- IdentifierElement.cs
- InstancePersistenceContext.cs
- UseManagedPresentationBindingElementImporter.cs
- InitializationEventAttribute.cs
- KeyboardNavigation.cs
- PLINQETWProvider.cs
- InteropEnvironment.cs
- LineGeometry.cs
- DbParameterCollectionHelper.cs
- ClientSponsor.cs
- DecimalFormatter.cs
- AddInPipelineAttributes.cs
- ResourceDictionary.cs
- NavigationProperty.cs
- PackWebResponse.cs
- SrgsItemList.cs
- CreateUserWizard.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- columnmapfactory.cs
- SponsorHelper.cs
- RolePrincipal.cs
- WCFModelStrings.Designer.cs
- QilReplaceVisitor.cs
- CommandField.cs
- HttpResponse.cs
- AQNBuilder.cs
- SQLResource.cs
- SafeFileMappingHandle.cs
- CacheAxisQuery.cs
- PagesSection.cs
- EdmMember.cs
- SystemColorTracker.cs
- CommonRemoteMemoryBlock.cs
- Rect3D.cs
- UnsafeNetInfoNativeMethods.cs
- SignatureSummaryDialog.cs
- XmlAnyElementAttributes.cs
- SmiMetaData.cs
- TextSimpleMarkerProperties.cs
- FormView.cs
- EntityContainerEntitySetDefiningQuery.cs
- FilterElement.cs
- WebPartEditVerb.cs
- StructuralCache.cs
- ColumnMapCopier.cs
- Popup.cs
- Canonicalizers.cs
- Highlights.cs