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
- PageContent.cs
- MasterPage.cs
- DomainConstraint.cs
- SchemaManager.cs
- CalendarDay.cs
- BrowserCapabilitiesCodeGenerator.cs
- Win32Native.cs
- TypeRestriction.cs
- UriScheme.cs
- QuaternionAnimation.cs
- MouseGestureValueSerializer.cs
- MaskedTextBox.cs
- GeneratedCodeAttribute.cs
- Setter.cs
- UnknownExceptionActionHelper.cs
- ScrollableControl.cs
- Util.cs
- ScriptMethodAttribute.cs
- IPAddress.cs
- DragEvent.cs
- DataContractFormatAttribute.cs
- FileStream.cs
- DecoderNLS.cs
- TextDecoration.cs
- HttpListenerRequest.cs
- BigInt.cs
- CodeLinePragma.cs
- XmlQuerySequence.cs
- ElapsedEventArgs.cs
- SqlFunctionAttribute.cs
- ImageFormat.cs
- ReaderWriterLockWrapper.cs
- RequestCacheValidator.cs
- XmlIlVisitor.cs
- TextClipboardData.cs
- XmlDocumentType.cs
- CollectionBase.cs
- HttpModuleActionCollection.cs
- QueryCursorEventArgs.cs
- CompiledXpathExpr.cs
- RpcResponse.cs
- HGlobalSafeHandle.cs
- ScriptReference.cs
- PermissionRequestEvidence.cs
- ErrorFormatterPage.cs
- SymbolEqualComparer.cs
- NativeRightsManagementAPIsStructures.cs
- HttpContext.cs
- BasicExpandProvider.cs
- SqlBooleanizer.cs
- SchemaImporterExtensionElementCollection.cs
- AnnotationResourceChangedEventArgs.cs
- CollectionViewGroup.cs
- NativeMethods.cs
- LogLogRecordEnumerator.cs
- GeneralTransform3DGroup.cs
- XamlSerializationHelper.cs
- TableLayoutSettingsTypeConverter.cs
- Utils.cs
- SchemaElementLookUpTable.cs
- FileEnumerator.cs
- ListViewDataItem.cs
- PerformanceCounterPermissionEntry.cs
- DetailsViewInsertEventArgs.cs
- SqlDuplicator.cs
- ContentPresenter.cs
- Style.cs
- SchemaTableOptionalColumn.cs
- CodeMemberEvent.cs
- Variant.cs
- XamlDesignerSerializationManager.cs
- ObjectDataSourceMethodEventArgs.cs
- HttpException.cs
- Section.cs
- SocketPermission.cs
- SoapAttributeAttribute.cs
- ImagingCache.cs
- DemultiplexingDispatchMessageFormatter.cs
- XsltException.cs
- Adorner.cs
- UIElement3DAutomationPeer.cs
- OdbcEnvironmentHandle.cs
- RewritingSimplifier.cs
- DetailsViewModeEventArgs.cs
- SoapAttributeAttribute.cs
- GPStream.cs
- TableLayoutPanel.cs
- PathData.cs
- SplitterCancelEvent.cs
- DataGridTable.cs
- coordinator.cs
- ConfigXmlCDataSection.cs
- XmlSchemaException.cs
- QueryTreeBuilder.cs
- HttpCacheParams.cs
- WindowShowOrOpenTracker.cs
- HtmlInputRadioButton.cs
- FixedDSBuilder.cs
- FtpRequestCacheValidator.cs
- ProjectionCamera.cs