C# Class SoftCircuits.WinSettings.Setting

Represents a single setting for -derived classes.
Mostrar archivo Open project: SoftCircuits/WinSettings

Public Methods

Method Description
GetValue ( ) : object?

Gets the value of this setting.

GetValueAsString ( ) : string

Gets this setting's value as a string.

SetValue ( object value ) : void

Sets the value of this setting.

SetValueFromString ( string value ) : void

Sets this setting's value from a string.

Setting ( SoftCircuits.WinSettings.Settings settings, PropertyInfo propertyInfo, bool encrypted ) : System

Constructs a new instance of the class.

Method Details

GetValue() public method

Gets the value of this setting.
public GetValue ( ) : object?
return object?

GetValueAsString() public method

Gets this setting's value as a string.
public GetValueAsString ( ) : string
return string

SetValue() public method

Sets the value of this setting.
public SetValue ( object value ) : void
value object The value this setting should be set to.
return void

SetValueFromString() public method

Sets this setting's value from a string.
public SetValueFromString ( string value ) : void
value string A string that represents the value this setting should be set to.
return void

Setting() public method

Constructs a new instance of the class.
public Setting ( SoftCircuits.WinSettings.Settings settings, PropertyInfo propertyInfo, bool encrypted ) : System
settings SoftCircuits.WinSettings.Settings The class that contains /// this property (setting).
propertyInfo PropertyInfo The for this /// property.
encrypted bool Indicates whether or not this setting is /// encrypted.
return System