DPB1Class · Utilities and settings

JsonSettings

Configuration for json settings. Properties below describe the available settings.

Namespace: DreamPoeBot.Loki.Common

public class JsonSettingsView DPB2 version →

Inherited APIs and contracts

Members declared by a base type are documented on that type. Follow these links to include them in your lookup.

Members and overloads

13 results

JsonSettings

MethodLink ↗
public JsonSettings.JsonSettings(string path)

Creates a new JsonSettings instance using the supplied arguments.

pathstring
Specifies path.

GetDefaultValue

MethodLink ↗
protected T JsonSettings.GetDefaultValue<T>(Expression<Func<T>> exp)

Returns default value using the supplied arguments.

expExpression<Func<T>>
Specifies exp.

Returns: The T result.

GetProperty

MethodLink ↗
public object JsonSettings.GetProperty(string name)

Returns property using the supplied arguments.

namestring
Specifies name.

Returns: The object result.

GetSettingsFilePath

MethodLink ↗
public static string JsonSettings.GetSettingsFilePath(params string[] subPathParts)

Returns settings file path using the supplied arguments.

subPathPartsstring[]
Specifies sub path parts.

Returns: The string result.

HasProperty

MethodLink ↗
public bool JsonSettings.HasProperty(string name)

Checks for property using the supplied arguments.

namestring
Specifies name.

Returns: A Boolean result. The member description explains the condition being checked.

LoadFrom

MethodLink ↗
protected void JsonSettings.LoadFrom(string file)

Loads from using the supplied arguments.

filestring
Specifies file.

Save

MethodLink ↗
public void JsonSettings.Save()

Executes the save operation.

SaveAs

MethodLink ↗
public void JsonSettings.SaveAs(string file)

Saves as using the supplied arguments.

filestring
Specifies file.

SetProperty

MethodLink ↗
public void JsonSettings.SetProperty(string name, object value)

Sets property using the supplied arguments.

namestring
Specifies name.
valueobject
Specifies value.

Validate

MethodLink ↗
public virtual bool JsonSettings.Validate(out List<string> errors)

Executes the validate operation with the supplied arguments.

errorsList<string>
Receives errors.

Returns: A Boolean result. The member description explains the condition being checked.

AssemblyPath

PropertyLink ↗
public static string JsonSettings.AssemblyPath { get; }

Gets assembly path for JsonSettings.

FilePath

PropertyLink ↗
public string JsonSettings.FilePath { get; internal set; }

Gets file path for JsonSettings.

SettingsPath

PropertyLink ↗
public static string JsonSettings.SettingsPath { get; }

Gets settings path for JsonSettings.

Related types

DPB1 0.3.29.47 · 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.