Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509PeerCertificateElement.cs
- wgx_exports.cs
- ECDsa.cs
- AttributeUsageAttribute.cs
- HttpListenerRequestUriBuilder.cs
- ProviderConnectionPoint.cs
- Exceptions.cs
- EntityWithKeyStrategy.cs
- TextPointerBase.cs
- FormsAuthenticationCredentials.cs
- DataColumnMapping.cs
- RenderOptions.cs
- AlphaSortedEnumConverter.cs
- EntityDataSource.cs
- NamespaceInfo.cs
- ConfigXmlSignificantWhitespace.cs
- ObjectDataSourceSelectingEventArgs.cs
- LoginDesignerUtil.cs
- InputLangChangeRequestEvent.cs
- ClientScriptManagerWrapper.cs
- DataGridColumn.cs
- EntityDataSourceContainerNameConverter.cs
- IndexedDataBuffer.cs
- StrictAndMessageFilter.cs
- ThemeInfoAttribute.cs
- WebPartCloseVerb.cs
- DataGridTextBox.cs
- ISO2022Encoding.cs
- SafeNativeMethods.cs
- ProxyFragment.cs
- XamlTypeMapper.cs
- Location.cs
- Compiler.cs
- RenderOptions.cs
- CodeDirectionExpression.cs
- XmlAtomErrorReader.cs
- WebPartAuthorizationEventArgs.cs
- RichTextBoxConstants.cs
- WindowsButton.cs
- SelectionProviderWrapper.cs
- InputBinding.cs
- ECDiffieHellman.cs
- WebPartCancelEventArgs.cs
- ObjectItemCachedAssemblyLoader.cs
- WbemProvider.cs
- CodePrimitiveExpression.cs
- SecurityUtils.cs
- dbenumerator.cs
- WebPartVerbsEventArgs.cs
- XPathNavigator.cs
- CodeTypeDeclarationCollection.cs
- DiscardableAttribute.cs
- URLString.cs
- DependencyPropertyConverter.cs
- SystemIPv6InterfaceProperties.cs
- MonitorWrapper.cs
- FixedSOMTable.cs
- ActivityDesigner.cs
- PasswordBox.cs
- DataListItemCollection.cs
- cache.cs
- PerformanceCounterPermissionEntry.cs
- HttpApplicationFactory.cs
- StateBag.cs
- MetadataSerializer.cs
- FileUpload.cs
- OdbcStatementHandle.cs
- TextPattern.cs
- MetadataArtifactLoaderCompositeResource.cs
- ConfigXmlSignificantWhitespace.cs
- COM2Properties.cs
- PartialToken.cs
- ZeroOpNode.cs
- SerialPort.cs
- DashStyle.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- Point3D.cs
- TranslateTransform.cs
- AspNetCacheProfileAttribute.cs
- DocComment.cs
- ButtonColumn.cs
- Animatable.cs
- EDesignUtil.cs
- EntityDataSourceView.cs
- XmlIlTypeHelper.cs
- TransformGroup.cs
- ImplicitInputBrush.cs
- EntityDataSourceChangedEventArgs.cs
- NativeMethods.cs
- BulletedList.cs
- LateBoundBitmapDecoder.cs
- CompModSwitches.cs
- SchemaImporter.cs
- WebColorConverter.cs
- FaultFormatter.cs
- PrintDialogException.cs
- Rule.cs
- CaseCqlBlock.cs
- Constraint.cs
- SmiTypedGetterSetter.cs