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
- PropertyRecord.cs
- _SslState.cs
- XPathNodeList.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- HttpsHostedTransportConfiguration.cs
- AppLevelCompilationSectionCache.cs
- AsymmetricKeyExchangeDeformatter.cs
- DataGridViewCellCancelEventArgs.cs
- _HelperAsyncResults.cs
- FieldNameLookup.cs
- ExpressionWriter.cs
- RecipientInfo.cs
- _FtpControlStream.cs
- NetworkInformationException.cs
- XmlSerializerNamespaces.cs
- DiscoveryClientDuplexChannel.cs
- SqlDuplicator.cs
- Int32Converter.cs
- SystemUdpStatistics.cs
- SerializationStore.cs
- TokenizerHelper.cs
- BitSet.cs
- ISessionStateStore.cs
- ConnectionManager.cs
- StateBag.cs
- RoleManagerSection.cs
- SqlBuilder.cs
- HtmlInputControl.cs
- TargetConverter.cs
- IOException.cs
- MultiAsyncResult.cs
- XmlSchemaComplexContentExtension.cs
- DataBoundLiteralControl.cs
- TreeNodeSelectionProcessor.cs
- ArcSegment.cs
- DataServiceExpressionVisitor.cs
- SID.cs
- ClientUtils.cs
- EventListenerClientSide.cs
- ClientRoleProvider.cs
- Part.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- DisplayNameAttribute.cs
- AuthenticationException.cs
- WMIGenerator.cs
- BlobPersonalizationState.cs
- WebEventTraceProvider.cs
- DoubleCollectionConverter.cs
- ColorContext.cs
- VisualStyleTypesAndProperties.cs
- DBCommand.cs
- OrderingInfo.cs
- SystemDropShadowChrome.cs
- BitmapEffectGeneralTransform.cs
- WindowsImpersonationContext.cs
- ParallelDesigner.xaml.cs
- WindowManager.cs
- XamlParser.cs
- PropertyManager.cs
- ThreadAttributes.cs
- EntityParameter.cs
- StreamGeometry.cs
- OracleBinary.cs
- NavigatorOutput.cs
- ParsedAttributeCollection.cs
- SettingsPropertyNotFoundException.cs
- ObjectMaterializedEventArgs.cs
- TemplateEditingVerb.cs
- MetadataPropertyAttribute.cs
- ModelFactory.cs
- ColumnClickEvent.cs
- BaseTemplateBuildProvider.cs
- WebHttpDispatchOperationSelectorData.cs
- Converter.cs
- LongValidatorAttribute.cs
- NonParentingControl.cs
- DeleteWorkflowOwnerCommand.cs
- PageHandlerFactory.cs
- CustomErrorsSection.cs
- OptionalMessageQuery.cs
- PackagingUtilities.cs
- ZipIOExtraFieldElement.cs
- ReaderContextStackData.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- DocumentGridContextMenu.cs
- COAUTHIDENTITY.cs
- AccessViolationException.cs
- PropertyMapper.cs
- Label.cs
- EventMappingSettings.cs
- ActivityDesigner.cs
- LifetimeServices.cs
- HtmlImage.cs
- TableLayoutCellPaintEventArgs.cs
- ConnectionOrientedTransportChannelFactory.cs
- RequestCacheValidator.cs
- QueryOpeningEnumerator.cs
- DictionaryItemsCollection.cs
- KeysConverter.cs
- DesignerSerializationOptionsAttribute.cs