Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Configuration / CheckPair.cs / 1 / CheckPair.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using System.Text.RegularExpressions; using System.Web.Compilation; using System.Web.UI; using System.Web.Util; using System.Xml; using System.Globalization; internal class CheckPair { private string _header; private string _match; private bool _nonMatch; internal CheckPair(string header, string match, bool nonMatch) { _header = header; _match = match; _nonMatch = nonMatch; //check validity of match string at parse time Regex regex = new Regex(match); } internal CheckPair(string header, string match) { _header = header; _match = match; _nonMatch = false; Regex regex = new Regex(match); } public string Header { get { return _header; } } public string MatchString { get { return _match; } } public bool NonMatch { get { return _nonMatch; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using System.Text.RegularExpressions; using System.Web.Compilation; using System.Web.UI; using System.Web.Util; using System.Xml; using System.Globalization; internal class CheckPair { private string _header; private string _match; private bool _nonMatch; internal CheckPair(string header, string match, bool nonMatch) { _header = header; _match = match; _nonMatch = nonMatch; //check validity of match string at parse time Regex regex = new Regex(match); } internal CheckPair(string header, string match) { _header = header; _match = match; _nonMatch = false; Regex regex = new Regex(match); } public string Header { get { return _header; } } public string MatchString { get { return _match; } } public bool NonMatch { get { return _nonMatch; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SignedXml.cs
- HttpFileCollection.cs
- CFStream.cs
- PnrpPermission.cs
- XNodeValidator.cs
- PeerNameRegistration.cs
- DataSourceControl.cs
- Vector3DKeyFrameCollection.cs
- FeatureSupport.cs
- OutputWindow.cs
- ControlUtil.cs
- ConstraintStruct.cs
- SqlClientWrapperSmiStream.cs
- QuaternionKeyFrameCollection.cs
- ChtmlMobileTextWriter.cs
- OdbcParameterCollection.cs
- PaperSource.cs
- CryptoApi.cs
- ListViewItemEventArgs.cs
- GroupBoxDesigner.cs
- MsmqMessageProperty.cs
- XmlSchemaRedefine.cs
- GraphicsState.cs
- HttpConfigurationContext.cs
- FixedSOMTable.cs
- Matrix.cs
- QilXmlWriter.cs
- TrackBarDesigner.cs
- EnvelopedPkcs7.cs
- TabControlAutomationPeer.cs
- AttachmentService.cs
- GraphicsPath.cs
- StackSpiller.Bindings.cs
- BaseContextMenu.cs
- ModelItemKeyValuePair.cs
- NativeMethods.cs
- TextDecorations.cs
- TableHeaderCell.cs
- HandlerFactoryWrapper.cs
- DirectoryRootQuery.cs
- Comparer.cs
- TextBoxRenderer.cs
- UriTemplateTrieLocation.cs
- ComponentCommands.cs
- DeviceContext.cs
- ProcessModuleCollection.cs
- DocumentReference.cs
- ObjectSecurity.cs
- AssemblyNameProxy.cs
- GroupBoxRenderer.cs
- _SingleItemRequestCache.cs
- SafeNativeMethodsCLR.cs
- ActionItem.cs
- Avt.cs
- EncryptedXml.cs
- EntryPointNotFoundException.cs
- LowerCaseStringConverter.cs
- PanelDesigner.cs
- ReadOnlyDictionary.cs
- Pkcs7Recipient.cs
- JpegBitmapDecoder.cs
- ExpressionTable.cs
- XmlJsonWriter.cs
- SpecialNameAttribute.cs
- DataTableReaderListener.cs
- ThicknessAnimation.cs
- DeferredElementTreeState.cs
- WebColorConverter.cs
- ChildTable.cs
- MorphHelper.cs
- BaseWebProxyFinder.cs
- ServerProtocol.cs
- OutOfMemoryException.cs
- ItemChangedEventArgs.cs
- TextBlockAutomationPeer.cs
- TextWriterTraceListener.cs
- XmlCharCheckingReader.cs
- DataDesignUtil.cs
- CodeStatementCollection.cs
- UnaryNode.cs
- InstalledFontCollection.cs
- MenuScrollingVisibilityConverter.cs
- ParameterCollection.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- WeakRefEnumerator.cs
- StreamAsIStream.cs
- PropertyManager.cs
- InputScope.cs
- FlowDecisionLabelFeature.cs
- EpmSourcePathSegment.cs
- HttpProfileGroupBase.cs
- StoreItemCollection.Loader.cs
- HandlerWithFactory.cs
- DetailsViewDeleteEventArgs.cs
- WriterOutput.cs
- GroupDescription.cs
- DataTableClearEvent.cs
- ISCIIEncoding.cs
- JsonFaultDetail.cs
- ActiveDesignSurfaceEvent.cs