Class Setting<T>
Typed setting with id and value.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.Core.Settings
Assembly: Sdl.Core.Settings.dll
Syntax
public abstract class Setting<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
Setting()
Declaration
protected Setting()
Fields
_inherited
Inherited
Declaration
protected bool _inherited
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
Id
Gets the Id of the setting retrieved from the XML
Declaration
public abstract string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Inherited
True if this setting was inherited from a parent bundle or if it is a default value.
Declaration
public virtual bool Inherited { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Value
Gets or sets the setting value,
Declaration
public abstract T Value { get; set; }
Property Value
Type | Description |
---|---|
T |
Methods
Reset()
Resets the setting to the inherited or default value.
Declaration
public abstract void Reset()
Operators
Implicit(Setting<T> to T)
Implicit conversion operator to enable easy access to the value without explicitly accessing the Value property.
Declaration
public static implicit operator T(Setting<T> setting)
Parameters
Type | Name | Description |
---|---|---|
Setting<T> | setting | The setting to convert. |
Returns
Type | Description |
---|---|
T | The setting value. |