Code:
/ DotNET / DotNET / 8.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
- OdbcInfoMessageEvent.cs
- ComplexObject.cs
- GcSettings.cs
- BaseDataList.cs
- FileSecurity.cs
- Utils.cs
- ConsumerConnectionPoint.cs
- DefaultPerformanceCounters.cs
- BasicHttpSecurityElement.cs
- TimeoutException.cs
- CurrentChangingEventArgs.cs
- FlowDocumentPageViewerAutomationPeer.cs
- XmlSchemaImporter.cs
- StrongBox.cs
- SettingsBindableAttribute.cs
- DataTableReaderListener.cs
- StringFreezingAttribute.cs
- AssemblyBuilder.cs
- ColorConvertedBitmap.cs
- FunctionParameter.cs
- TakeOrSkipWhileQueryOperator.cs
- CharacterMetricsDictionary.cs
- BindingExpressionUncommonField.cs
- DrawingAttributes.cs
- ObjectStateFormatter.cs
- MarshalByRefObject.cs
- ComponentDispatcherThread.cs
- DateTime.cs
- WebPartMenuStyle.cs
- MobileTemplatedControlDesigner.cs
- VirtualPathUtility.cs
- TargetControlTypeAttribute.cs
- VerificationException.cs
- ValuePattern.cs
- XmlDataDocument.cs
- BufferedMessageData.cs
- ScriptResourceInfo.cs
- UTF8Encoding.cs
- DataSourceExpressionCollection.cs
- CharacterHit.cs
- Perspective.cs
- StandardCommands.cs
- MissingManifestResourceException.cs
- RubberbandSelector.cs
- SystemTcpConnection.cs
- WebRequestModulesSection.cs
- SimpleType.cs
- SoapSchemaMember.cs
- RemoveStoryboard.cs
- ListParaClient.cs
- WinInetCache.cs
- XmlSchemaSet.cs
- SelectedGridItemChangedEvent.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- ButtonFieldBase.cs
- WorkflowQueuingService.cs
- PersistChildrenAttribute.cs
- BypassElement.cs
- Misc.cs
- Transform.cs
- ObjectView.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ThreadStartException.cs
- VisualStyleInformation.cs
- _SslStream.cs
- QueryExpression.cs
- DataGridRelationshipRow.cs
- TraceEventCache.cs
- SessionStateModule.cs
- StackBuilderSink.cs
- MethodAccessException.cs
- WmpBitmapEncoder.cs
- SudsCommon.cs
- TabPanel.cs
- XmlEntity.cs
- TemplateBindingExpression.cs
- InternalBufferOverflowException.cs
- FieldCollectionEditor.cs
- ImageBrush.cs
- XmlWhitespace.cs
- XDeferredAxisSource.cs
- LineVisual.cs
- PathParser.cs
- SQLInt64Storage.cs
- ArrayConverter.cs
- MetadataElement.cs
- PartManifestEntry.cs
- WindowsListViewItemStartMenu.cs
- BasicBrowserDialog.designer.cs
- ModelTreeManager.cs
- BuildResult.cs
- COM2ComponentEditor.cs
- ECDsa.cs
- SortAction.cs
- ProcessInputEventArgs.cs
- EventManager.cs
- DataGridViewLinkColumn.cs
- EventlogProvider.cs
- MergeEnumerator.cs
- DataServiceRequestException.cs