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
- ParameterCollection.cs
- HexParser.cs
- TextLine.cs
- CodeGeneratorAttribute.cs
- ClientSponsor.cs
- RtfNavigator.cs
- Icon.cs
- IdleTimeoutMonitor.cs
- FixUp.cs
- Canvas.cs
- WebCategoryAttribute.cs
- Encoding.cs
- AdornerDecorator.cs
- MailWriter.cs
- Symbol.cs
- TextParagraphCache.cs
- WindowPattern.cs
- ActionMismatchAddressingException.cs
- KeySpline.cs
- LightweightCodeGenerator.cs
- selecteditemcollection.cs
- RtfToXamlReader.cs
- ResourceManager.cs
- Material.cs
- EdmSchemaAttribute.cs
- ButtonChrome.cs
- HttpHandler.cs
- OracleRowUpdatedEventArgs.cs
- UInt64.cs
- SelectorAutomationPeer.cs
- OracleInfoMessageEventArgs.cs
- URL.cs
- LinqDataSourceDeleteEventArgs.cs
- TableItemPattern.cs
- SerialReceived.cs
- DataObject.cs
- XmlStreamedByteStreamReader.cs
- ServerValidateEventArgs.cs
- XmlSchemaSimpleContentExtension.cs
- OperationCanceledException.cs
- AxisAngleRotation3D.cs
- XmlEntityReference.cs
- SoapDocumentMethodAttribute.cs
- XamlGridLengthSerializer.cs
- Color.cs
- HuffModule.cs
- Rotation3D.cs
- TextStore.cs
- HyperLinkField.cs
- Int64.cs
- DetailsViewDeleteEventArgs.cs
- EarlyBoundInfo.cs
- TCPClient.cs
- IQueryable.cs
- TreeNode.cs
- EntityCommandDefinition.cs
- ToolStripDropDownItem.cs
- WebBrowsableAttribute.cs
- DragDrop.cs
- ContextQuery.cs
- RelationshipSet.cs
- DotAtomReader.cs
- StatusBarItemAutomationPeer.cs
- TypeSystemProvider.cs
- Delay.cs
- ReflectTypeDescriptionProvider.cs
- DefaultHttpHandler.cs
- NotFiniteNumberException.cs
- AmbientProperties.cs
- querybuilder.cs
- GPRECTF.cs
- ConnectionManagementElement.cs
- TypeElement.cs
- MappingMetadataHelper.cs
- DataGridViewRowCancelEventArgs.cs
- ColorTranslator.cs
- DescendentsWalkerBase.cs
- RepeaterItemCollection.cs
- DialogResultConverter.cs
- DrawingImage.cs
- FrameworkPropertyMetadata.cs
- CompilationSection.cs
- PersonalizationStateInfo.cs
- SqlVisitor.cs
- RuleElement.cs
- AssertUtility.cs
- PersonalizationEntry.cs
- FileIOPermission.cs
- ColumnResizeAdorner.cs
- RelationalExpressions.cs
- Configuration.cs
- UnauthorizedWebPart.cs
- FileFormatException.cs
- WebPartActionVerb.cs
- ListControl.cs
- KnownTypes.cs
- WindowsListViewItemStartMenu.cs
- BordersPage.cs
- DelayLoadType.cs
- XmlWrappingReader.cs