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
- ColumnReorderedEventArgs.cs
- X509Certificate2Collection.cs
- EntryIndex.cs
- HtmlInputImage.cs
- ValidatedControlConverter.cs
- XmlTextReaderImplHelpers.cs
- PackageFilter.cs
- BinaryFormatter.cs
- BaseTemplateBuildProvider.cs
- SchemaElementLookUpTable.cs
- UserMapPath.cs
- AuthenticatingEventArgs.cs
- CryptoApi.cs
- KnownIds.cs
- FileLevelControlBuilderAttribute.cs
- ToolStripArrowRenderEventArgs.cs
- LinkConverter.cs
- MatrixIndependentAnimationStorage.cs
- File.cs
- SecurityDescriptor.cs
- CodeTypeOfExpression.cs
- PlatformCulture.cs
- RotateTransform3D.cs
- DetailsViewCommandEventArgs.cs
- ActionFrame.cs
- recordstatescratchpad.cs
- CatalogPart.cs
- Button.cs
- ISAPIWorkerRequest.cs
- HttpMethodConstraint.cs
- SpnegoTokenProvider.cs
- PeerNameRecord.cs
- AppSecurityManager.cs
- Array.cs
- XmlAttributeProperties.cs
- XhtmlCssHandler.cs
- TableRowsCollectionEditor.cs
- ChannelPoolSettingsElement.cs
- PackagePartCollection.cs
- ProxyManager.cs
- ToolStripMenuItem.cs
- InvalidateEvent.cs
- ConstNode.cs
- RequiredFieldValidator.cs
- WebPartAddingEventArgs.cs
- BindingListCollectionView.cs
- safex509handles.cs
- GridViewRowPresenterBase.cs
- _BufferOffsetSize.cs
- BaseTemplateBuildProvider.cs
- ProgressBarAutomationPeer.cs
- formatter.cs
- AnnotationHighlightLayer.cs
- DynamicRendererThreadManager.cs
- XmlEncodedRawTextWriter.cs
- CodeCastExpression.cs
- CodeChecksumPragma.cs
- MapPathBasedVirtualPathProvider.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- TextElement.cs
- LinqDataView.cs
- HttpCookieCollection.cs
- CommonGetThemePartSize.cs
- ImageSourceValueSerializer.cs
- EventWaitHandleSecurity.cs
- AccessDataSourceView.cs
- X509RecipientCertificateServiceElement.cs
- LightweightCodeGenerator.cs
- ColumnPropertiesGroup.cs
- TraceUtility.cs
- HttpRawResponse.cs
- CalendarDesigner.cs
- Globals.cs
- WmlListAdapter.cs
- CheckBoxRenderer.cs
- DebugView.cs
- EdmError.cs
- MsmqSecureHashAlgorithm.cs
- RadioButtonList.cs
- ContextBase.cs
- DESCryptoServiceProvider.cs
- DataGridColumnStyleMappingNameEditor.cs
- NamespaceCollection.cs
- ScalarRestriction.cs
- TableAdapterManagerGenerator.cs
- DataGridViewColumnEventArgs.cs
- HttpContextServiceHost.cs
- streamingZipPartStream.cs
- NegatedCellConstant.cs
- GPRECT.cs
- ProviderUtil.cs
- TableDetailsRow.cs
- XPathDocument.cs
- CodeStatementCollection.cs
- GroupItem.cs
- DataTableExtensions.cs
- XamlRtfConverter.cs
- RuleSetReference.cs
- SoapCodeExporter.cs
- XmlAutoDetectWriter.cs