Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ConfigurationElementProperty.cs / 1305376 / ConfigurationElementProperty.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Configuration.Internal; using System.Collections; using System.Collections.Specialized; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Security.Permissions; using System.Xml; using System.Globalization; using System.ComponentModel; using System.Security; using System.Text; namespace System.Configuration { // Although in Whidbey this class contain just one property, but we still do this this way, // instead of exposing a Validator property in ConfigurationElement, because if we need // another property in the future we'll expand this ElementProperty class rather than adding a // new overridable on ConfigurationElement public sealed class ConfigurationElementProperty { private ConfigurationValidatorBase _validator; public ConfigurationElementProperty(ConfigurationValidatorBase validator) { if (validator == null) { throw new ArgumentNullException("validator"); } _validator = validator; } public ConfigurationValidatorBase Validator { get { return _validator; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Configuration.Internal; using System.Collections; using System.Collections.Specialized; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Security.Permissions; using System.Xml; using System.Globalization; using System.ComponentModel; using System.Security; using System.Text; namespace System.Configuration { // Although in Whidbey this class contain just one property, but we still do this this way, // instead of exposing a Validator property in ConfigurationElement, because if we need // another property in the future we'll expand this ElementProperty class rather than adding a // new overridable on ConfigurationElement public sealed class ConfigurationElementProperty { private ConfigurationValidatorBase _validator; public ConfigurationElementProperty(ConfigurationValidatorBase validator) { if (validator == null) { throw new ArgumentNullException("validator"); } _validator = validator; } public ConfigurationValidatorBase Validator { get { return _validator; } } } } // 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
- SafeArchiveContext.cs
- QilScopedVisitor.cs
- ParameterCollection.cs
- RelationshipNavigation.cs
- AttributeAction.cs
- NativeCompoundFileAPIs.cs
- XmlCountingReader.cs
- HttpListenerException.cs
- SolidColorBrush.cs
- NumberFormatter.cs
- recordstatescratchpad.cs
- BatchStream.cs
- PieceNameHelper.cs
- EventLogger.cs
- PageTrueTypeFont.cs
- RunWorkerCompletedEventArgs.cs
- ConnectionManagementSection.cs
- WrappedIUnknown.cs
- WebServiceTypeData.cs
- SettingsPropertyIsReadOnlyException.cs
- PenThreadPool.cs
- RemotingException.cs
- RequestNavigateEventArgs.cs
- DescendantOverDescendantQuery.cs
- ProxyHelper.cs
- PnrpPeerResolver.cs
- InstanceDescriptor.cs
- AdapterUtil.cs
- GlobalDataBindingHandler.cs
- ObjectContext.cs
- BeginGetFileNameFromUserRequest.cs
- ScriptReferenceEventArgs.cs
- Action.cs
- ListContractAdapter.cs
- Literal.cs
- xmlglyphRunInfo.cs
- PropertyIDSet.cs
- FtpWebRequest.cs
- SimpleHandlerBuildProvider.cs
- ProvidePropertyAttribute.cs
- IdentityHolder.cs
- ContextMenuStrip.cs
- Converter.cs
- DataDocumentXPathNavigator.cs
- ConstraintConverter.cs
- ChtmlFormAdapter.cs
- SafePointer.cs
- MetafileEditor.cs
- HMACSHA512.cs
- SimpleMailWebEventProvider.cs
- DataIdProcessor.cs
- UIntPtr.cs
- SessionStateUtil.cs
- BlockCollection.cs
- Visual3D.cs
- BackStopAuthenticationModule.cs
- ByteViewer.cs
- HighlightVisual.cs
- UnknownWrapper.cs
- ComponentManagerBroker.cs
- UTF32Encoding.cs
- Classification.cs
- ProfileSection.cs
- MulticastOption.cs
- LineInfo.cs
- SoapExtension.cs
- ApplyImportsAction.cs
- WebServiceClientProxyGenerator.cs
- Opcode.cs
- XmlDomTextWriter.cs
- StatusBarAutomationPeer.cs
- DesignOnlyAttribute.cs
- EpmAttributeNameBuilder.cs
- Triplet.cs
- ApplyImportsAction.cs
- AttributeCollection.cs
- TransactionException.cs
- InvalidTimeZoneException.cs
- WebPartMovingEventArgs.cs
- DesignerActionPropertyItem.cs
- SiteMapNodeItemEventArgs.cs
- ManipulationStartingEventArgs.cs
- SetterBase.cs
- SerialStream.cs
- CurrencyManager.cs
- MethodRental.cs
- CodeSnippetCompileUnit.cs
- ScriptBehaviorDescriptor.cs
- ListItemCollection.cs
- ByteKeyFrameCollection.cs
- DbDataSourceEnumerator.cs
- MsmqProcessProtocolHandler.cs
- HandlerBase.cs
- TimestampInformation.cs
- MetadataArtifactLoaderResource.cs
- RegexRunnerFactory.cs
- SerTrace.cs
- XmlSchemaInferenceException.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- StrongNameUtility.cs