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
- SQLBoolean.cs
- TableRowsCollectionEditor.cs
- StateRuntime.cs
- StylusShape.cs
- MarshalByRefObject.cs
- WebPartMovingEventArgs.cs
- ConfigXmlAttribute.cs
- Keywords.cs
- BinaryFormatter.cs
- TextBoxBase.cs
- SourceSwitch.cs
- DataColumnCollection.cs
- PropertyMappingExceptionEventArgs.cs
- BoundPropertyEntry.cs
- _LocalDataStore.cs
- ExpressionQuoter.cs
- VisualTarget.cs
- EntitySetBase.cs
- Model3D.cs
- ConnectionPoint.cs
- DebugControllerThread.cs
- FontUnitConverter.cs
- DrawingContextDrawingContextWalker.cs
- UIServiceHelper.cs
- StoreItemCollection.cs
- IndentedWriter.cs
- DataGridViewHeaderCell.cs
- PerformanceCounterPermission.cs
- OrderedEnumerableRowCollection.cs
- basecomparevalidator.cs
- ProfileModule.cs
- RenamedEventArgs.cs
- XPathBinder.cs
- SafeCryptoHandles.cs
- MarkupExtensionReturnTypeAttribute.cs
- AvtEvent.cs
- CompiledAction.cs
- Rfc2898DeriveBytes.cs
- DecimalKeyFrameCollection.cs
- CompilerErrorCollection.cs
- MaskedTextBox.cs
- AlignmentXValidation.cs
- BitmapEffectrendercontext.cs
- ClientUtils.cs
- UserMapPath.cs
- sqlnorm.cs
- DbMetaDataCollectionNames.cs
- PerfCounterSection.cs
- ApplicationSecurityManager.cs
- PersistChildrenAttribute.cs
- SqlCacheDependencySection.cs
- SiteOfOriginContainer.cs
- ConstrainedGroup.cs
- WsdlInspector.cs
- FindResponse.cs
- DataGridViewRowEventArgs.cs
- DataGridViewButtonColumn.cs
- RTTypeWrapper.cs
- MetaModel.cs
- NativeCppClassAttribute.cs
- ExpressionSelection.cs
- Style.cs
- XmlArrayItemAttributes.cs
- PreviewPageInfo.cs
- PropertyNames.cs
- CheckPair.cs
- TypedDatasetGenerator.cs
- XPathChildIterator.cs
- WindowAutomationPeer.cs
- XamlReader.cs
- TaskHelper.cs
- UpDownEvent.cs
- PropertyRecord.cs
- ParallelActivityDesigner.cs
- AppDomainFactory.cs
- PropertyFilter.cs
- PropertyMappingExceptionEventArgs.cs
- DateTimeOffset.cs
- MouseDevice.cs
- InlineUIContainer.cs
- listitem.cs
- BindValidator.cs
- InstanceContext.cs
- HttpCookie.cs
- AddingNewEventArgs.cs
- UIElementParagraph.cs
- Expander.cs
- ListMarkerSourceInfo.cs
- WsatExtendedInformation.cs
- TransactionsSectionGroup.cs
- SystemNetHelpers.cs
- Assert.cs
- OleDbParameterCollection.cs
- WindowsAltTab.cs
- UIPropertyMetadata.cs
- Message.cs
- CmsInterop.cs
- OracleCommand.cs
- HtmlInputText.cs
- NativeWindow.cs