Class JsonSettingImpl<T>
Json implementation of a Setting with Id and Value
Implements
System.ICloneable
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.Implementation.Json
Assembly: Sdl.Core.Settings.dll
Syntax
public class JsonSettingImpl<T> : Setting<T>, ICloneable
Type Parameters
Name | Description |
---|---|
T |
Constructors
JsonSettingImpl()
Default constructor for deserialization purposes
Declaration
public JsonSettingImpl()
JsonSettingImpl(JsonSettingImpl<T>)
Copy Constructor
Declaration
public JsonSettingImpl(JsonSettingImpl<T> other)
Parameters
Type | Name | Description |
---|---|---|
JsonSettingImpl<T> | other |
Properties
Id
ID of Setting
Declaration
public override string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Sdl.Core.Settings.Setting<T>.Id
SettingsGroup
Settings Group Property (Parent Group)
Declaration
public ISettingsGroup SettingsGroup { get; set; }
Property Value
Type | Description |
---|---|
ISettingsGroup |
Value
Value of setting
Declaration
public override T Value { get; set; }
Property Value
Type | Description |
---|---|
T |
Overrides
Sdl.Core.Settings.Setting<T>.Value
Methods
Clone()
Clone setting
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object |
OnSettingUpdated()
called when setting updated to Update in Parent group
Declaration
protected void OnSettingUpdated()
Reset()
Reset value to default
Declaration
public override void Reset()
Overrides
Sdl.Core.Settings.Setting<T>.Reset()
Implements
System.ICloneable