ConfigDefinition Class
Definition
Section titled “Definition”Section and key of a setting. Used as a unique key for identification within a ConfigFile. The same definition can be used in multiple config files, it will point to different settings then.
public class ConfigDefinition : IEquatable<ConfigDefinition>
Inheritance object
Implements IEquatable<ConfigDefinition>
Constructors
Section titled “Constructors”ConfigDefinition(string, string)
Section titled “ConfigDefinition(string, string)”Create a new definition. Definitions with same section and key are equal.
public ConfigDefinition(string section, string key)
Parameters
Section titled “Parameters”section
string
Group of the setting, case sensitive.
key
string
Name of the setting, case sensitive.
ConfigDefinition(string, string, string)
Section titled “ConfigDefinition(string, string, string)”[Obsolete("description argument is no longer used, put it in a ConfigDescription instead")]public ConfigDefinition(string section, string key, string description)
Parameters
Section titled “Parameters”section
string
key
string
description
string
Properties
Section titled “Properties”Section
Section titled “Section”Group of the setting. All settings within a config file are grouped by this.
public string Section { get; }
Name of the setting.
public string Key { get; }
Methods
Section titled “Methods”Equals(ConfigDefinition)
Section titled “Equals(ConfigDefinition)”Check if the definitions are the same.
public bool Equals(ConfigDefinition other)
Parameters
Section titled “Parameters”other
ConfigDefinition
An object to compare with this object.
Returns
Section titled “Returns”bool
true if the current object is equal to the other
parameter; otherwise, false.
Equals(object)
Section titled “Equals(object)”Check if the definitions are the same.
public override bool Equals(object obj)
Parameters
Section titled “Parameters”obj
object
Returns
Section titled “Returns”GetHashCode()
Section titled “GetHashCode()”Serves as the default hash function.
public override int GetHashCode()
Returns
Section titled “Returns”int
A hash code for the current object.
ToString()
Section titled “ToString()”Returns a string that represents the current object.
public override string ToString()
Returns
Section titled “Returns”string
A string that represents the current object.