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
- PackageFilter.cs
- ObjectViewFactory.cs
- RewritingSimplifier.cs
- OdbcTransaction.cs
- WebPartZone.cs
- DrawToolTipEventArgs.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- XmlArrayItemAttribute.cs
- EntityDataSourceEntityTypeFilterItem.cs
- Base64Encoding.cs
- SafeIUnknown.cs
- SizeLimitedCache.cs
- XmlWrappingReader.cs
- IdentitySection.cs
- SmtpTransport.cs
- PowerStatus.cs
- JournalEntryListConverter.cs
- ObjectListItem.cs
- SystemIcons.cs
- Vector3DCollectionConverter.cs
- SuspendDesigner.cs
- DataGridBoolColumn.cs
- TextStore.cs
- NegationPusher.cs
- HijriCalendar.cs
- ECDiffieHellman.cs
- FileReader.cs
- HttpListenerException.cs
- _TransmitFileOverlappedAsyncResult.cs
- securitycriticaldata.cs
- UIPropertyMetadata.cs
- CodeParameterDeclarationExpression.cs
- DataGridAddNewRow.cs
- DrawingContextWalker.cs
- ExpressionParser.cs
- OledbConnectionStringbuilder.cs
- SortQuery.cs
- RoutingExtension.cs
- GC.cs
- XmlMtomReader.cs
- BrowserCapabilitiesFactoryBase.cs
- NameNode.cs
- SymmetricAlgorithm.cs
- DictionaryKeyPropertyAttribute.cs
- StrongNameIdentityPermission.cs
- MetabaseSettingsIis7.cs
- ISAPIRuntime.cs
- GeometryModel3D.cs
- Psha1DerivedKeyGenerator.cs
- PolicyStatement.cs
- DocumentOutline.cs
- TransactionScope.cs
- AutoCompleteStringCollection.cs
- Currency.cs
- recordstatefactory.cs
- CodeChecksumPragma.cs
- ToolStripItemCollection.cs
- EntityCommandCompilationException.cs
- ErrorLog.cs
- RSAProtectedConfigurationProvider.cs
- ScriptDescriptor.cs
- BaseProcessor.cs
- FileDialog_Vista.cs
- ToolZoneDesigner.cs
- ChildChangedEventArgs.cs
- SerialErrors.cs
- PropertyEmitter.cs
- ResourceKey.cs
- TreeNodeCollection.cs
- ProviderSettings.cs
- OrderedDictionaryStateHelper.cs
- Vector.cs
- WebPartConnection.cs
- WindowsGraphicsWrapper.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- NativeCompoundFileAPIs.cs
- PopupEventArgs.cs
- AnimationClockResource.cs
- Math.cs
- SplineQuaternionKeyFrame.cs
- HtmlControlPersistable.cs
- FormViewRow.cs
- EmptyCollection.cs
- MetaTableHelper.cs
- PrimaryKeyTypeConverter.cs
- ToolStripPanel.cs
- XdrBuilder.cs
- SqlXml.cs
- MimeTextImporter.cs
- EntityModelBuildProvider.cs
- PathSegmentCollection.cs
- ReadOnlyCollectionBase.cs
- FormViewDeletedEventArgs.cs
- DoubleLinkListEnumerator.cs
- CheckedListBox.cs
- WindowsPen.cs
- BrowserDefinition.cs
- Transactions.cs
- _SslState.cs
- StatusStrip.cs