Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / DelayedRegex.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ColumnCollectionEditor.cs
- ObjectAnimationUsingKeyFrames.cs
- HasCopySemanticsAttribute.cs
- SerialErrors.cs
- ConstraintCollection.cs
- AuthenticationModuleElement.cs
- _MultipleConnectAsync.cs
- OptionalColumn.cs
- UIElement.cs
- XPathNodePointer.cs
- ObjectManager.cs
- PageParserFilter.cs
- GridViewEditEventArgs.cs
- AutomationPatternInfo.cs
- Choices.cs
- JsonDeserializer.cs
- MeasureData.cs
- XmlSchemaSimpleContent.cs
- RuntimeResourceSet.cs
- TypeConverterHelper.cs
- XmlQualifiedName.cs
- SuppressIldasmAttribute.cs
- ChannelManager.cs
- OleDbMetaDataFactory.cs
- XsltLoader.cs
- SendDesigner.xaml.cs
- CrossSiteScriptingValidation.cs
- SpanIndex.cs
- ProfileManager.cs
- HtmlMeta.cs
- DetailsViewPageEventArgs.cs
- ImageFormatConverter.cs
- CodeTypeReferenceExpression.cs
- SvcFileManager.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- GradientStopCollection.cs
- IERequestCache.cs
- WebContext.cs
- DataGridColumnHeaderAutomationPeer.cs
- MarkupCompilePass1.cs
- ImmutableCollection.cs
- FormsAuthenticationCredentials.cs
- Span.cs
- EntityExpressionVisitor.cs
- QuestionEventArgs.cs
- CollectionConverter.cs
- AnnotationDocumentPaginator.cs
- HttpClientCertificate.cs
- BitmapCacheBrush.cs
- IRCollection.cs
- SqlConnectionStringBuilder.cs
- UnsafeNativeMethods.cs
- DataControlFieldCell.cs
- Marshal.cs
- DigitalSignatureProvider.cs
- WrappingXamlSchemaContext.cs
- XmlSchemaInferenceException.cs
- ScriptingAuthenticationServiceSection.cs
- ACE.cs
- UnmanagedHandle.cs
- IpcChannel.cs
- FreeFormDesigner.cs
- UniqueEventHelper.cs
- _NtlmClient.cs
- SqlDelegatedTransaction.cs
- StaticSiteMapProvider.cs
- SettingsBindableAttribute.cs
- AsyncOperationManager.cs
- NativeMethodsCLR.cs
- CodeDirectoryCompiler.cs
- HttpPostProtocolImporter.cs
- Utilities.cs
- InnerItemCollectionView.cs
- RelationshipConverter.cs
- WindowsNonControl.cs
- HttpCacheVary.cs
- CollectionViewGroupRoot.cs
- Size.cs
- InputScopeManager.cs
- RegexCompiler.cs
- XmlSchemaAttributeGroupRef.cs
- SafeIUnknown.cs
- ContentFileHelper.cs
- PrtTicket_Public_Simple.cs
- FaultBookmark.cs
- ObjectParameterCollection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ViewManager.cs
- ManagedIStream.cs
- QueryGenerator.cs
- SeekableReadStream.cs
- SizeFConverter.cs
- XamlStyleSerializer.cs
- WebScriptClientGenerator.cs
- ByteConverter.cs
- SoapSchemaExporter.cs
- XmlILIndex.cs
- BlurBitmapEffect.cs
- AttributeAction.cs
- SqlDataSourceView.cs