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
- OperationContractAttribute.cs
- SignedXml.cs
- StructuralCache.cs
- EntityDataSource.cs
- LicenseContext.cs
- Native.cs
- MessageDirection.cs
- Expression.DebuggerProxy.cs
- CodeBinaryOperatorExpression.cs
- SystemWebSectionGroup.cs
- EntityDataSourceContainerNameItem.cs
- AxisAngleRotation3D.cs
- VerticalAlignConverter.cs
- RadioButton.cs
- LicenseException.cs
- ObjectAnimationBase.cs
- XmlSchemaCompilationSettings.cs
- StackBuilderSink.cs
- WebServiceParameterData.cs
- HeaderCollection.cs
- SHA256Managed.cs
- XPathMultyIterator.cs
- JoinTreeSlot.cs
- InkCollectionBehavior.cs
- StatusBarPanelClickEvent.cs
- PageRouteHandler.cs
- VisualBrush.cs
- UInt16.cs
- RoleGroupCollection.cs
- PlainXmlSerializer.cs
- BitStack.cs
- HashStream.cs
- TemplatedControlDesigner.cs
- AcceleratedTokenAuthenticator.cs
- IndentTextWriter.cs
- TracingConnectionInitiator.cs
- Listbox.cs
- DataBoundLiteralControl.cs
- GiveFeedbackEventArgs.cs
- CheckBoxFlatAdapter.cs
- CapabilitiesAssignment.cs
- DataBoundLiteralControl.cs
- CryptoHandle.cs
- SourceElementsCollection.cs
- ConsoleCancelEventArgs.cs
- TerminateSequence.cs
- EntityDataReader.cs
- SettingsPropertyValue.cs
- MemberListBinding.cs
- SqlNotificationEventArgs.cs
- MetabaseServerConfig.cs
- SqlInternalConnection.cs
- SafeTimerHandle.cs
- Activator.cs
- StandardMenuStripVerb.cs
- DataViewListener.cs
- Crc32.cs
- DataControlPagerLinkButton.cs
- SubtreeProcessor.cs
- XamlPathDataSerializer.cs
- WebServiceTypeData.cs
- CreateInstanceBinder.cs
- PriorityBindingExpression.cs
- FloaterParaClient.cs
- DbReferenceCollection.cs
- ASCIIEncoding.cs
- Icon.cs
- AxHost.cs
- IisTraceWebEventProvider.cs
- CharUnicodeInfo.cs
- ObjectReaderCompiler.cs
- NetworkAddressChange.cs
- AuthenticationManager.cs
- SiteMapDesignerDataSourceView.cs
- AmbiguousMatchException.cs
- LabelDesigner.cs
- EdmType.cs
- ToolStripGrip.cs
- ActionFrame.cs
- SqlCommandSet.cs
- IDispatchConstantAttribute.cs
- MemoryStream.cs
- CommonRemoteMemoryBlock.cs
- AlignmentYValidation.cs
- GroupBoxAutomationPeer.cs
- BitmapEffectState.cs
- WebPartAuthorizationEventArgs.cs
- Vector3DConverter.cs
- Int16.cs
- ListSourceHelper.cs
- XmlDocument.cs
- AddressHeaderCollectionElement.cs
- XmlUtil.cs
- ToolStripDropDown.cs
- HeaderUtility.cs
- GlobalDataBindingHandler.cs
- SpecularMaterial.cs
- CalloutQueueItem.cs
- DataStreams.cs
- remotingproxy.cs