Represents a set of used for localization.
Public Member Functions | |
| VariableSet () | |
| Creates a new empty variable set. More... | |
| void | Clear () |
| Empties this variable set. More... | |
| void | Add (string code, string value) |
| Adds a variable to this set. More... | |
| void | Remove (string code) |
| Removes a variable by name. More... | |
| bool | Contains (string code) |
| Checks if this variable set contains the named variable. More... | |
| string | GetValue (string code) |
| Gets the value of the named variable from this set. More... | |
| void | SetValue (string code, string value) |
| Sets a value of the named variable into this set. Creates it if it doesn't exist. More... | |
| JSArray | ToJson () |
| Converts this set to a JSON array. More... | |
Public Attributes | |
| Dictionary< string, string > | Map |
| The lookup of variable name to its content. More... | |
Properties | |
| int | Count [get] |
| The number of entries in the set. More... | |
| string | this[string code] [get, set] |
| Gets or sets (or creates if not found) the value of a named variable in this set. More... | |
|
inline |
Creates a new empty variable set.
|
inline |
Adds a variable to this set.
| code | The name of the variable. |
| value | The value of this variable. |
|
inline |
Empties this variable set.
|
inline |
Checks if this variable set contains the named variable.
| code | The name of the variable to look for. |
|
inline |
Gets the value of the named variable from this set.
| code | The name of the variable to get the value of. |
|
inline |
Removes a variable by name.
| code | The name of the variable to remove. |
|
inline |
Sets a value of the named variable into this set. Creates it if it doesn't exist.
| code | The name of the variable to set or create. |
| value | The value of the variable to set. |
|
inline |
Converts this set to a JSON array.
| Dictionary<string,string> Dom.VariableSet.Map |
The lookup of variable name to its content.
|
get |
The number of entries in the set.
|
getset |
Gets or sets (or creates if not found) the value of a named variable in this set.
| code | The name of the variable to get/set/create. |