Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / DelayedRegex.cs / 1305376 / DelayedRegex.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.Collections; using System.Configuration; using System.IO; using System.Security; using System.Security.Permissions; using System.Text.RegularExpressions; using System.Web.Configuration; using System.Web.Util; using System.Xml; using Pair = System.Web.UI.Pair; internal class DelayedRegex { private String _regstring; private Regex _regex; internal DelayedRegex(String s) { _regex = null; _regstring = s; } internal Match Match(String s) { EnsureRegex(); return _regex.Match(s); } internal int GroupNumberFromName(String name) { EnsureRegex(); return _regex.GroupNumberFromName(name); } internal void EnsureRegex() { string regstring = _regstring; if(_regex == null) { _regex = new Regex(regstring); //free original _regstring = null; } return; } } } // 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
- SqlException.cs
- Drawing.cs
- Ipv6Element.cs
- SymbolType.cs
- WebBrowserPermission.cs
- SiteOfOriginPart.cs
- ViewCellRelation.cs
- MetadataCacheItem.cs
- CornerRadiusConverter.cs
- SrgsElementFactory.cs
- SoapWriter.cs
- FormatException.cs
- StringStorage.cs
- RootBuilder.cs
- BindMarkupExtensionSerializer.cs
- PixelFormatConverter.cs
- EncryptedPackageFilter.cs
- _emptywebproxy.cs
- PersonalizationState.cs
- InternalPolicyElement.cs
- OutputCacheProfile.cs
- EntityException.cs
- NotifyParentPropertyAttribute.cs
- XPathAncestorIterator.cs
- StreamHelper.cs
- DocumentApplicationJournalEntry.cs
- IndependentlyAnimatedPropertyMetadata.cs
- PathFigure.cs
- EnumValAlphaComparer.cs
- Int32RectConverter.cs
- Light.cs
- HttpModuleCollection.cs
- XsdBuildProvider.cs
- MetadataHelper.cs
- ByteConverter.cs
- CSharpCodeProvider.cs
- TableItemPatternIdentifiers.cs
- TabletCollection.cs
- FormsAuthenticationEventArgs.cs
- BoundColumn.cs
- XamlTypeMapper.cs
- CurrentChangingEventManager.cs
- assertwrapper.cs
- LoginCancelEventArgs.cs
- Brush.cs
- CheckBox.cs
- IndentTextWriter.cs
- Msmq.cs
- Tool.cs
- GcSettings.cs
- IApplicationTrustManager.cs
- ListBox.cs
- _DisconnectOverlappedAsyncResult.cs
- RelatedView.cs
- UIPermission.cs
- ComplexTypeEmitter.cs
- SqlConnectionFactory.cs
- PlatformNotSupportedException.cs
- DSASignatureDeformatter.cs
- TextEditorSelection.cs
- InheritedPropertyChangedEventArgs.cs
- LayoutSettings.cs
- EastAsianLunisolarCalendar.cs
- CustomPeerResolverService.cs
- CodeTypeDeclaration.cs
- processwaithandle.cs
- ComPlusDiagnosticTraceSchemas.cs
- OleDbFactory.cs
- CommonXSendMessage.cs
- SqlAliaser.cs
- StoryFragments.cs
- MultiBinding.cs
- ToolStripOverflow.cs
- OleDbRowUpdatingEvent.cs
- Viewport2DVisual3D.cs
- SystemSounds.cs
- HttpHandler.cs
- GridEntryCollection.cs
- FormatControl.cs
- CellConstant.cs
- TransformDescriptor.cs
- AspCompat.cs
- Propagator.cs
- MergePropertyDescriptor.cs
- NamespaceTable.cs
- ISessionStateStore.cs
- ModelService.cs
- DesignerActionKeyboardBehavior.cs
- NotImplementedException.cs
- XmlNodeList.cs
- Rotation3D.cs
- GridViewDeleteEventArgs.cs
- BevelBitmapEffect.cs
- NameTable.cs
- HttpDateParse.cs
- QueryOperator.cs
- SchemaManager.cs
- ResourceReferenceExpression.cs
- CryptoConfig.cs
- RequestTimeoutManager.cs