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
- DefaultTextStore.cs
- LocalizableAttribute.cs
- LinqToSqlWrapper.cs
- DatasetMethodGenerator.cs
- XamlStream.cs
- Polyline.cs
- RelationshipConverter.cs
- TemplateControl.cs
- SweepDirectionValidation.cs
- StateMachineSubscriptionManager.cs
- EventBookmark.cs
- EntityTypeBase.cs
- Interop.cs
- MimeTypeMapper.cs
- DisableDpiAwarenessAttribute.cs
- Color.cs
- CriticalExceptions.cs
- ResetableIterator.cs
- BaseTemplateBuildProvider.cs
- CodeSnippetStatement.cs
- CompilationSection.cs
- rsa.cs
- Opcode.cs
- SafeLocalMemHandle.cs
- ObfuscateAssemblyAttribute.cs
- SQLByte.cs
- SimpleType.cs
- ListBoxItemWrapperAutomationPeer.cs
- AttributeAction.cs
- PropertyIdentifier.cs
- DynamicActivityTypeDescriptor.cs
- XmlDataSource.cs
- MenuRenderer.cs
- CodeStatementCollection.cs
- AmbientProperties.cs
- XPathExpr.cs
- Int32Collection.cs
- DataGridLinkButton.cs
- CommandDevice.cs
- PathGeometry.cs
- TreeWalker.cs
- DataGridLinkButton.cs
- FormViewDeletedEventArgs.cs
- ScrollBar.cs
- EntityDataSourceWrapper.cs
- CalloutQueueItem.cs
- ListenUriMode.cs
- UrlMapping.cs
- FileIOPermission.cs
- XmlIgnoreAttribute.cs
- TCEAdapterGenerator.cs
- RecognitionEventArgs.cs
- EntityProviderServices.cs
- XmlSequenceWriter.cs
- GenericPrincipal.cs
- SymbolDocumentInfo.cs
- DataGridHeaderBorder.cs
- ChtmlTextWriter.cs
- CultureTable.cs
- PropertyPath.cs
- BitmapScalingModeValidation.cs
- AsymmetricCryptoHandle.cs
- XmlChildNodes.cs
- ModifierKeysValueSerializer.cs
- Registry.cs
- EntityDataSourceUtil.cs
- BinaryWriter.cs
- XPathSelectionIterator.cs
- OperationResponse.cs
- CapabilitiesPattern.cs
- BufferBuilder.cs
- DataGridViewCellMouseEventArgs.cs
- CommentAction.cs
- PseudoWebRequest.cs
- AsyncSerializedWorker.cs
- Point3DValueSerializer.cs
- dbdatarecord.cs
- TextServicesCompartment.cs
- MetadataCache.cs
- GeneralTransform3DCollection.cs
- Utils.cs
- OdbcConnectionHandle.cs
- HttpResponseInternalWrapper.cs
- DBSchemaRow.cs
- ProxyWebPartConnectionCollection.cs
- ConfigurationValidatorAttribute.cs
- DataFormat.cs
- SecureStringHasher.cs
- UiaCoreProviderApi.cs
- TextEmbeddedObject.cs
- HostedHttpTransportManager.cs
- RuntimeIdentifierPropertyAttribute.cs
- OdbcParameter.cs
- FixedDocumentSequencePaginator.cs
- ObservableCollectionDefaultValueFactory.cs
- SimpleBitVector32.cs
- DataGridViewIntLinkedList.cs
- WebPartZoneCollection.cs
- MethodCallExpression.cs
- RuntimeComponentFilter.cs