public JsonSettings.JsonSettings(string path)
Creates a new JsonSettings instance using the supplied arguments.
pathstring- Specifies path.
Configuration for json settings. Properties below describe the available settings.
Namespace: DreamPoeBot.Loki.Common
public class JsonSettingsView DPB1 version →Members declared by a base type are documented on that type. Follow these links to include them in your lookup.
public JsonSettings.JsonSettings(string path)
Creates a new JsonSettings instance using the supplied arguments.
pathstringprotected T JsonSettings.GetDefaultValue<T>(Expression<Func<T>> exp)
Returns default value using the supplied arguments.
expExpression<Func<T>>Returns: The T result.
public object JsonSettings.GetProperty(string name)
Returns property using the supplied arguments.
namestringReturns: The object result.
public static string JsonSettings.GetSettingsFilePath(params string[] subPathParts)
Returns settings file path using the supplied arguments.
subPathPartsstring[]Returns: The string result.
public bool JsonSettings.HasProperty(string name)
Checks for property using the supplied arguments.
namestringReturns: A Boolean result. The member description explains the condition being checked.
protected void JsonSettings.LoadFrom(string file)
Loads from using the supplied arguments.
filestringpublic void JsonSettings.Save()
Executes the save operation.
public void JsonSettings.SaveAs(string file)
Saves as using the supplied arguments.
filestringpublic void JsonSettings.SetProperty(string name, object value)
Sets property using the supplied arguments.
namestringvalueobjectpublic virtual bool JsonSettings.Validate(out List<string> errors)
Executes the validate operation with the supplied arguments.
errorsList<string>Returns: A Boolean result. The member description explains the condition being checked.
public static string JsonSettings.AssemblyPath { get; }
Gets assembly path for JsonSettings.
public string JsonSettings.FilePath { get; internal set; }
Gets file path for JsonSettings.
public static string JsonSettings.SettingsPath { get; }
Gets settings path for JsonSettings.
DPB2 0.4.5.88 · Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.