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
- DashStyle.cs
- TreeView.cs
- SynchronizingStream.cs
- TdsParserHelperClasses.cs
- CommandDevice.cs
- ResourceExpressionEditorSheet.cs
- GC.cs
- GridViewPageEventArgs.cs
- ScriptingScriptResourceHandlerSection.cs
- WindowsListView.cs
- ExportOptions.cs
- GridViewUpdateEventArgs.cs
- WindowsSlider.cs
- XmlFormatExtensionPrefixAttribute.cs
- SqlRowUpdatedEvent.cs
- _Semaphore.cs
- _LoggingObject.cs
- ProgressPage.cs
- SchemaNames.cs
- WriteableBitmap.cs
- ToolbarAUtomationPeer.cs
- SpellerError.cs
- PassportAuthenticationModule.cs
- ListViewTableRow.cs
- WebGetAttribute.cs
- AQNBuilder.cs
- BaseUriHelper.cs
- XmlUrlResolver.cs
- IIS7UserPrincipal.cs
- _SingleItemRequestCache.cs
- CapacityStreamGeometryContext.cs
- ConvertersCollection.cs
- EmissiveMaterial.cs
- DurableErrorHandler.cs
- AnnotationHighlightLayer.cs
- peersecurityelement.cs
- FixedSOMTable.cs
- LoginName.cs
- CharacterBuffer.cs
- TransformGroup.cs
- EntitySqlQueryCacheKey.cs
- GridViewSortEventArgs.cs
- SelectingProviderEventArgs.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- ListViewEditEventArgs.cs
- MediaScriptCommandRoutedEventArgs.cs
- IdnMapping.cs
- DescendentsWalkerBase.cs
- SafeCryptHandles.cs
- SchemaSetCompiler.cs
- DataGridViewCellEventArgs.cs
- BmpBitmapDecoder.cs
- RectAnimation.cs
- WindowsNonControl.cs
- SqlEnums.cs
- StateRuntime.cs
- ContextBase.cs
- XslNumber.cs
- OleDbPropertySetGuid.cs
- CodeMethodMap.cs
- MD5.cs
- AttributeTable.cs
- CustomPopupPlacement.cs
- ExpressionContext.cs
- TextFormatter.cs
- RadioButtonBaseAdapter.cs
- BitmapPalettes.cs
- GeometryModel3D.cs
- ElapsedEventArgs.cs
- NativeObjectSecurity.cs
- EditorResources.cs
- RecognizerStateChangedEventArgs.cs
- EventMap.cs
- wgx_render.cs
- RenderDataDrawingContext.cs
- Utilities.cs
- DeviceSpecificDialogCachedState.cs
- HighlightComponent.cs
- AudioFileOut.cs
- SegmentInfo.cs
- unsafeIndexingFilterStream.cs
- ControlValuePropertyAttribute.cs
- PerformanceCountersElement.cs
- TraceContext.cs
- HttpModuleActionCollection.cs
- DataGridBeginningEditEventArgs.cs
- COM2ComponentEditor.cs
- CompiledQuery.cs
- TextTreeTextElementNode.cs
- XPathAncestorIterator.cs
- DictionaryTraceRecord.cs
- ComplexTypeEmitter.cs
- WebPartHeaderCloseVerb.cs
- ToolboxItemSnapLineBehavior.cs
- StringCollectionMarkupSerializer.cs
- HashCodeCombiner.cs
- Vector3DValueSerializer.cs
- SchemaNames.cs
- COM2IProvidePropertyBuilderHandler.cs
- OperatingSystemVersionCheck.cs