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
- BamlTreeNode.cs
- RectangleHotSpot.cs
- DictionaryTraceRecord.cs
- BroadcastEventHelper.cs
- SingleSelectRootGridEntry.cs
- InkCollectionBehavior.cs
- DataServiceRequestArgs.cs
- HttpConfigurationSystem.cs
- HttpStreams.cs
- IssuedTokenParametersEndpointAddressElement.cs
- XsltOutput.cs
- ToolboxItem.cs
- ParameterBinding.cs
- GB18030Encoding.cs
- TextViewElement.cs
- wgx_render.cs
- SessionPageStatePersister.cs
- dbenumerator.cs
- ResetableIterator.cs
- QilLiteral.cs
- FixUp.cs
- MethodBody.cs
- Source.cs
- SeverityFilter.cs
- SettingsAttributes.cs
- SerialReceived.cs
- HttpDictionary.cs
- TraceRecords.cs
- WebUtil.cs
- ItemList.cs
- FixedSOMFixedBlock.cs
- RemoteWebConfigurationHostServer.cs
- _ProxyChain.cs
- SubqueryRules.cs
- Match.cs
- ThemeableAttribute.cs
- EmbeddedMailObjectsCollection.cs
- KeySpline.cs
- StateChangeEvent.cs
- NTAccount.cs
- HandlerBase.cs
- OracleParameterBinding.cs
- JulianCalendar.cs
- CommonXSendMessage.cs
- SR.cs
- PropertyBuilder.cs
- StringStorage.cs
- PcmConverter.cs
- IdentitySection.cs
- DesignerVerbCollection.cs
- SingleConverter.cs
- TemplateKey.cs
- QilName.cs
- MemoryResponseElement.cs
- TrackingParticipant.cs
- Base64Encoding.cs
- handlecollector.cs
- SystemIPv4InterfaceProperties.cs
- ConfigurationPermission.cs
- DataTableExtensions.cs
- Storyboard.cs
- CursorConverter.cs
- DesignTimeVisibleAttribute.cs
- XPathBuilder.cs
- EdmComplexPropertyAttribute.cs
- OleDbPropertySetGuid.cs
- ContainsRowNumberChecker.cs
- SafeRightsManagementPubHandle.cs
- NextPreviousPagerField.cs
- DBConcurrencyException.cs
- PlanCompiler.cs
- RelatedEnd.cs
- ImageMap.cs
- ContainerParaClient.cs
- PaintEvent.cs
- TextRangeEdit.cs
- TabPage.cs
- ScriptModule.cs
- SynchronousReceiveElement.cs
- BookmarkWorkItem.cs
- WsdlContractConversionContext.cs
- IItemContainerGenerator.cs
- TypeBuilder.cs
- SQLGuidStorage.cs
- StylusDevice.cs
- LayoutEngine.cs
- BindingMemberInfo.cs
- FontUnitConverter.cs
- XamlInt32CollectionSerializer.cs
- DataSourceProvider.cs
- SqlNotificationEventArgs.cs
- BitmapEffectInputData.cs
- DispatcherProcessingDisabled.cs
- SvcMapFileSerializer.cs
- EntitySqlQueryState.cs
- DocumentApplicationDocumentViewer.cs
- ConnectivityStatus.cs
- _SslState.cs
- InkCanvasSelectionAdorner.cs
- CustomWebEventKey.cs