Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Regex / System / Text / RegularExpressions / CompiledRegexRunnerFactory.cs / 1305376 / CompiledRegexRunnerFactory.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Reflection.Emit; using System.Diagnostics; using System.Security.Permissions; #if !SILVERLIGHT 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(); } #endif // 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
- ArrayList.cs
- DataGridViewRowsRemovedEventArgs.cs
- BaseUriWithWildcard.cs
- StateManagedCollection.cs
- TemplateBindingExpressionConverter.cs
- ProjectionCamera.cs
- HyperLinkDataBindingHandler.cs
- TextDecorations.cs
- ThemeInfoAttribute.cs
- TrustSection.cs
- DataGridViewComboBoxColumn.cs
- PageAsyncTaskManager.cs
- HtmlInputSubmit.cs
- _FixedSizeReader.cs
- CdpEqualityComparer.cs
- StackSpiller.Temps.cs
- OdbcConnectionOpen.cs
- Queue.cs
- FormsAuthenticationConfiguration.cs
- DockingAttribute.cs
- InfoCardArgumentException.cs
- TypeBuilder.cs
- ButtonBase.cs
- ErrorWebPart.cs
- Stack.cs
- FontResourceCache.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- IsolatedStoragePermission.cs
- PageCache.cs
- SynchronizationValidator.cs
- SafeNativeMethods.cs
- ProxyGenerator.cs
- TaiwanCalendar.cs
- DefaultAsyncDataDispatcher.cs
- WebServiceEnumData.cs
- TextureBrush.cs
- ConfigXmlSignificantWhitespace.cs
- EntityContainerEmitter.cs
- DataRecordInfo.cs
- GreenMethods.cs
- ColorConvertedBitmap.cs
- XmlSortKey.cs
- DesignTimeParseData.cs
- HttpChannelBindingToken.cs
- SubpageParaClient.cs
- UniqueCodeIdentifierScope.cs
- ObjectDataSourceWizardForm.cs
- UidPropertyAttribute.cs
- TypefaceMap.cs
- TextTreeUndo.cs
- IndicShape.cs
- XmlAttributes.cs
- FormsAuthentication.cs
- DrawItemEvent.cs
- RegionInfo.cs
- RegionInfo.cs
- LassoSelectionBehavior.cs
- Point3DIndependentAnimationStorage.cs
- BasicExpressionVisitor.cs
- StatusBarItem.cs
- ITreeGenerator.cs
- Point3DIndependentAnimationStorage.cs
- CreateParams.cs
- Int32Storage.cs
- RequestTimeoutManager.cs
- ControlCodeDomSerializer.cs
- DBCommand.cs
- SrgsOneOf.cs
- TemplateLookupAction.cs
- COM2TypeInfoProcessor.cs
- NavigationHelper.cs
- XmlSchemaAttributeGroupRef.cs
- SizeF.cs
- PeerName.cs
- GridView.cs
- AttributeUsageAttribute.cs
- GridPatternIdentifiers.cs
- PrintPreviewDialog.cs
- UriScheme.cs
- KeyBinding.cs
- TrackingProfile.cs
- SystemResourceKey.cs
- Dispatcher.cs
- XmlReader.cs
- ClientConfigurationSystem.cs
- ListComponentEditor.cs
- MouseButtonEventArgs.cs
- TraceRecord.cs
- ToolStripProgressBar.cs
- DataGridViewRowsRemovedEventArgs.cs
- CultureInfo.cs
- ToggleButton.cs
- IndependentAnimationStorage.cs
- DrawToolTipEventArgs.cs
- NullableBoolConverter.cs
- HGlobalSafeHandle.cs
- PeerCollaborationPermission.cs
- SHA1CryptoServiceProvider.cs
- BlurBitmapEffect.cs
- CompareInfo.cs