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
- DoubleAnimationClockResource.cs
- CommonXSendMessage.cs
- GatewayDefinition.cs
- PagesChangedEventArgs.cs
- StringAnimationBase.cs
- FormatterServices.cs
- StylusPointCollection.cs
- DataSetMappper.cs
- XmlJsonWriter.cs
- ListViewItem.cs
- UrlPath.cs
- ListViewGroupCollectionEditor.cs
- XmlSchemaSimpleTypeRestriction.cs
- XmlValidatingReader.cs
- ScrollChangedEventArgs.cs
- ConstraintConverter.cs
- ButtonChrome.cs
- DataGridViewCheckBoxCell.cs
- Quad.cs
- ObjectNavigationPropertyMapping.cs
- CDSsyncETWBCLProvider.cs
- StreamUpgradeInitiator.cs
- EditCommandColumn.cs
- ListBoxAutomationPeer.cs
- UserPersonalizationStateInfo.cs
- CheckedListBox.cs
- CodeSnippetStatement.cs
- ResourceAttributes.cs
- ObjectSecurity.cs
- TypeFieldSchema.cs
- RandomNumberGenerator.cs
- Drawing.cs
- OutputCacheProfileCollection.cs
- EventLog.cs
- IMembershipProvider.cs
- HostingPreferredMapPath.cs
- PrintingPermissionAttribute.cs
- MessageQueuePermission.cs
- TableLayoutSettingsTypeConverter.cs
- FieldToken.cs
- QuestionEventArgs.cs
- PolicyException.cs
- ClosableStream.cs
- StateWorkerRequest.cs
- DataObjectEventArgs.cs
- BookmarkNameHelper.cs
- Oci.cs
- AstTree.cs
- embossbitmapeffect.cs
- MarkupProperty.cs
- TextTreeUndoUnit.cs
- SectionInput.cs
- AuthenticationManager.cs
- ReliableRequestSessionChannel.cs
- SQLGuid.cs
- TypeSystem.cs
- RawStylusInputCustomData.cs
- sqlmetadatafactory.cs
- ListViewItemSelectionChangedEvent.cs
- QilLoop.cs
- EdmPropertyAttribute.cs
- ParameterCollectionEditorForm.cs
- UiaCoreApi.cs
- CollectionExtensions.cs
- TabPanel.cs
- CopyCodeAction.cs
- MainMenu.cs
- DirectionalAction.cs
- SoapSchemaExporter.cs
- RoutedPropertyChangedEventArgs.cs
- Utils.cs
- SQLByteStorage.cs
- TextWriter.cs
- FileReader.cs
- ProfilePropertySettings.cs
- DataGridViewAccessibleObject.cs
- BigInt.cs
- DispatcherTimer.cs
- WindowInteractionStateTracker.cs
- RoutedEventHandlerInfo.cs
- ChannelCacheDefaults.cs
- XmlnsCompatibleWithAttribute.cs
- GlyphsSerializer.cs
- TimeSpanValidator.cs
- WeakHashtable.cs
- WorkflowOwnershipException.cs
- DBCSCodePageEncoding.cs
- ListManagerBindingsCollection.cs
- PackWebRequest.cs
- SettingsPropertyNotFoundException.cs
- BamlTreeNode.cs
- Ipv6Element.cs
- Graphics.cs
- CodeDomConfigurationHandler.cs
- CollectionView.cs
- DispatcherTimer.cs
- ChannelBuilder.cs
- LocalizedNameDescriptionPair.cs
- PreservationFileWriter.cs
- WindowClosedEventArgs.cs