Code:
/ FX-1434 / FX-1434 / 1.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
- DeviceContext.cs
- RelationalExpressions.cs
- WrappedReader.cs
- TransformerTypeCollection.cs
- CompiledAction.cs
- QilCloneVisitor.cs
- DesignerSerializationVisibilityAttribute.cs
- ToolBarPanel.cs
- SamlSecurityToken.cs
- ColorBuilder.cs
- ServiceDocument.cs
- XamlBrushSerializer.cs
- WorkflowHostingResponseContext.cs
- SchemeSettingElementCollection.cs
- BatchParser.cs
- CellLabel.cs
- CompilerInfo.cs
- Model3D.cs
- ScrollContentPresenter.cs
- KeyNotFoundException.cs
- SByteStorage.cs
- TextTreeUndo.cs
- XmlSchemaGroup.cs
- SystemFonts.cs
- TextDocumentView.cs
- HyperLinkColumn.cs
- Vector3DValueSerializer.cs
- IUnknownConstantAttribute.cs
- QueryStringParameter.cs
- ObjectStateEntryDbDataRecord.cs
- LicenseException.cs
- DbSetClause.cs
- XmlUtil.cs
- XmlEntityReference.cs
- WebDisplayNameAttribute.cs
- PriorityQueue.cs
- CollectionChangedEventManager.cs
- CompModSwitches.cs
- XmlHierarchyData.cs
- InputMethodStateTypeInfo.cs
- TriState.cs
- ZipPackage.cs
- MetadataPropertyvalue.cs
- GeometryModel3D.cs
- ParentQuery.cs
- HttpInputStream.cs
- SqlNotificationRequest.cs
- ValueTable.cs
- DataGridLinkButton.cs
- UnsafeNativeMethods.cs
- TemplateLookupAction.cs
- XmlStreamStore.cs
- OdbcEnvironment.cs
- AuthStoreRoleProvider.cs
- SqlBuffer.cs
- DurationConverter.cs
- HybridWebProxyFinder.cs
- ModuleBuilder.cs
- HttpResponse.cs
- BooleanAnimationBase.cs
- DesignerActionUIStateChangeEventArgs.cs
- AddressHeader.cs
- WebControl.cs
- CodeAccessSecurityEngine.cs
- ThousandthOfEmRealPoints.cs
- XsdDateTime.cs
- PropertyCondition.cs
- ImageBrush.cs
- CreateUserWizardStep.cs
- RectAnimationClockResource.cs
- PenThreadPool.cs
- SynchronizationLockException.cs
- COSERVERINFO.cs
- EntitySqlQueryCacheEntry.cs
- RegexWorker.cs
- GroupItemAutomationPeer.cs
- StringOutput.cs
- SchemaSetCompiler.cs
- X509Chain.cs
- LinqDataSourceHelper.cs
- EncodingStreamWrapper.cs
- PersonalizableTypeEntry.cs
- PageEventArgs.cs
- DBPropSet.cs
- RouteParametersHelper.cs
- ReadOnlyHierarchicalDataSourceView.cs
- XmlnsDictionary.cs
- RootNamespaceAttribute.cs
- GenerateTemporaryTargetAssembly.cs
- TextRangeAdaptor.cs
- HtmlGenericControl.cs
- TextWriterTraceListener.cs
- SelectionChangedEventArgs.cs
- SlotInfo.cs
- TextReader.cs
- JapaneseCalendar.cs
- StylusOverProperty.cs
- DataControlPagerLinkButton.cs
- Avt.cs
- GraphicsPathIterator.cs