Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Sys / System / Configuration / SettingsProperty.cs / 1 / SettingsProperty.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Collections; using System.Collections.Specialized; using System.Runtime.Serialization; using System.Configuration.Provider; using System.Globalization; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Xml.Serialization; using System.ComponentModel; //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public class SettingsProperty { public virtual string Name { get { return _Name; } set { _Name = value; } } public virtual bool IsReadOnly { get { return _IsReadOnly; } set { _IsReadOnly = value; } } public virtual object DefaultValue { get { return _DefaultValue; } set { _DefaultValue = value; } } public virtual Type PropertyType { get { return _PropertyType; } set { _PropertyType = value; } } public virtual SettingsSerializeAs SerializeAs { get { return _SerializeAs; } set { _SerializeAs = value; } } public virtual SettingsProvider Provider { get { return _Provider; } set { _Provider = value; } } public virtual SettingsAttributeDictionary Attributes { get { return _Attributes; } } public bool ThrowOnErrorDeserializing { get { return _ThrowOnErrorDeserializing; } set { _ThrowOnErrorDeserializing = value; } } public bool ThrowOnErrorSerializing { get { return _ThrowOnErrorSerializing; } set { _ThrowOnErrorSerializing = value; } } //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public SettingsProperty(string name) { _Name = name; _Attributes = new SettingsAttributeDictionary(); } public SettingsProperty(string name, Type propertyType, SettingsProvider provider, bool isReadOnly, object defaultValue, SettingsSerializeAs serializeAs, SettingsAttributeDictionary attributes, bool throwOnErrorDeserializing, bool throwOnErrorSerializing) { _Name = name; _PropertyType = propertyType; _Provider = provider; _IsReadOnly = isReadOnly; _DefaultValue = defaultValue; _SerializeAs = serializeAs; _Attributes = attributes; _ThrowOnErrorDeserializing = throwOnErrorDeserializing; _ThrowOnErrorSerializing = throwOnErrorSerializing; } //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public SettingsProperty(SettingsProperty propertyToCopy) { _Name = propertyToCopy.Name; _IsReadOnly = propertyToCopy.IsReadOnly; _DefaultValue = propertyToCopy.DefaultValue; _SerializeAs = propertyToCopy.SerializeAs; _Provider = propertyToCopy.Provider; _PropertyType = propertyToCopy.PropertyType; _ThrowOnErrorDeserializing = propertyToCopy.ThrowOnErrorDeserializing; _ThrowOnErrorSerializing = propertyToCopy.ThrowOnErrorSerializing; _Attributes = new SettingsAttributeDictionary(propertyToCopy.Attributes); } private string _Name; private bool _IsReadOnly; private object _DefaultValue; private SettingsSerializeAs _SerializeAs; private SettingsProvider _Provider; private SettingsAttributeDictionary _Attributes; private Type _PropertyType; private bool _ThrowOnErrorDeserializing; private bool _ThrowOnErrorSerializing; } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NgenServicingAttributes.cs
- RecommendedAsConfigurableAttribute.cs
- Decimal.cs
- DesignerWebPartChrome.cs
- WebPartEventArgs.cs
- SafeFreeMibTable.cs
- HttpResponseWrapper.cs
- ProjectionPruner.cs
- DocumentGridPage.cs
- XmlReflectionImporter.cs
- ButtonBase.cs
- FunctionMappingTranslator.cs
- TextFindEngine.cs
- SqlCommandBuilder.cs
- MetadataArtifactLoaderCompositeResource.cs
- ImageKeyConverter.cs
- CodeExpressionCollection.cs
- AddInControllerImpl.cs
- WebPartDescription.cs
- OdbcTransaction.cs
- TextServicesCompartment.cs
- base64Transforms.cs
- ControlBindingsConverter.cs
- PropertyMapper.cs
- CodeMemberMethod.cs
- NewExpression.cs
- unsafenativemethodsother.cs
- ExcludePathInfo.cs
- InputScope.cs
- Utils.cs
- HttpBrowserCapabilitiesWrapper.cs
- ComplexBindingPropertiesAttribute.cs
- ToolStripOverflow.cs
- RepeatButtonAutomationPeer.cs
- AccessibilityHelperForVista.cs
- ErrorFormatter.cs
- SelectionWordBreaker.cs
- CompositeActivityMarkupSerializer.cs
- XmlSchemaParticle.cs
- UrlPropertyAttribute.cs
- XmlSerializationGeneratedCode.cs
- DeferredSelectedIndexReference.cs
- ExpressionParser.cs
- DecoderFallbackWithFailureFlag.cs
- InputElement.cs
- UInt16.cs
- BuilderElements.cs
- httpapplicationstate.cs
- ObjectSpanRewriter.cs
- EntityTransaction.cs
- SafeNativeMethods.cs
- RadialGradientBrush.cs
- MetafileHeaderEmf.cs
- DataGridTablesFactory.cs
- PropertyMapper.cs
- TypographyProperties.cs
- EventManager.cs
- ChildDocumentBlock.cs
- CommunicationException.cs
- SystemWebSectionGroup.cs
- _UriTypeConverter.cs
- CustomPeerResolverService.cs
- StopStoryboard.cs
- LifetimeServices.cs
- TemplatedWizardStep.cs
- Size.cs
- TimeManager.cs
- BooleanSwitch.cs
- TimeSpanValidator.cs
- PriorityRange.cs
- WebEventTraceProvider.cs
- VirtualizedItemPattern.cs
- BasicCommandTreeVisitor.cs
- ConnectionManagementElement.cs
- BuildResultCache.cs
- NotCondition.cs
- Funcletizer.cs
- CompilationUtil.cs
- Vector3dCollection.cs
- X509CertificateValidator.cs
- BStrWrapper.cs
- PropertyPushdownHelper.cs
- ValueChangedEventManager.cs
- DbXmlEnabledProviderManifest.cs
- PointLight.cs
- Geometry.cs
- ServerValidateEventArgs.cs
- basemetadatamappingvisitor.cs
- HotSpot.cs
- TypeSystem.cs
- SchemaCollectionPreprocessor.cs
- StringFreezingAttribute.cs
- Transaction.cs
- EditingCoordinator.cs
- DoubleKeyFrameCollection.cs
- TypeViewSchema.cs
- MobileControlsSection.cs
- NativeMethods.cs
- VisualTarget.cs
- TrackingMemoryStream.cs