Property | Type | Description | |
---|---|---|---|
Invalid |
Method | Description | |
---|---|---|
AsBoolean ( bool defaultValue = default(bool) ) : bool |
Attempts to convert and return the value of this instance as a boolean. If the conversion is invalid, the default value is returned.
|
|
AsFloat ( float defaultValue = default(float) ) : float |
Attempts to convert and return the value of this instance as a float. If the conversion is invalid, the default value is returned.
|
|
AsInteger ( int defaultValue = default(int) ) : int |
Attempts to convert and return the value of this instance as an integer. If the conversion is invalid, the default value is returned.
|
|
AsLong ( long defaultValue = default(long) ) : long |
Attempts to convert and return the value of this instance as a long. If the conversion is invalid, the default value is returned.
|
|
AsString ( ) : string |
Returns the value of this instance as a string.
|
|
KeyValue ( string name = null, string value = null ) : System |
Initializes a new instance of the KeyValue class.
|
|
LoadAsBinary ( string path ) : |
Attempts to load the given filename as a binary KeyValue. This method will swallow any exceptions that occur when reading, use ReadAsBinary if you wish to handle exceptions. |
|
LoadAsText ( string path ) : |
Attempts to load the given filename as a text KeyValue. This method will swallow any exceptions that occur when reading, use ReadAsText if you wish to handle exceptions. |
|
LoadFromString ( string input ) : |
Attempts to create an instance of KeyValue from the given input text. This method will swallow any exceptions that occur when reading, use ReadAsText if you wish to handle exceptions. |
|
ReadAsBinary ( Stream input ) : bool |
Populate this instance from the given Stream as a binary KeyValue.
|
|
ReadAsText ( Stream input ) : bool |
Populate this instance from the given Stream as a text KeyValue.
|
|
ReadFileAsText ( string filename ) : bool |
Opens and reads the given filename as text.
|
|
SaveToFile ( string path, bool asBinary ) : void |
Saves this instance to file.
|
|
ToString ( ) : string |
Returns a System.String that represents this instance.
|
|
this ( string key ) : KeyValue |
Gets the child SteamKit2.KeyValue with the specified key. If no child with this key exists, Invalid is returned.
|
Method | Description | |
---|---|---|
LoadFromFile ( string path, bool asBinary ) : |
||
RecursiveLoadFromBuffer ( |
||
RecursiveSaveToFile ( |
||
RecursiveSaveToFile ( |
||
WriteIndents ( FileStream f, int indentLevel ) : void | ||
WriteString ( FileStream f, string str, bool quote = false ) : void |
public AsBoolean ( bool defaultValue = default(bool) ) : bool | ||
defaultValue | bool | The default value to return if the conversion is invalid. |
return | bool |
public AsFloat ( float defaultValue = default(float) ) : float | ||
defaultValue | float | The default value to return if the conversion is invalid. |
return | float |
public AsInteger ( int defaultValue = default(int) ) : int | ||
defaultValue | int | The default value to return if the conversion is invalid. |
return | int |
public AsLong ( long defaultValue = default(long) ) : long | ||
defaultValue | long | The default value to return if the conversion is invalid. |
return | long |
public KeyValue ( string name = null, string value = null ) : System | ||
name | string | The optional name of the root key. |
value | string | The optional value assigned to the root key. |
return | System |
public static LoadAsBinary ( string path ) : |
||
path | string | The path to the file to load. |
return |
public static LoadAsText ( string path ) : |
||
path | string | The path to the file to load. |
return |
public static LoadFromString ( string input ) : |
||
input | string | The input text to load. |
return |
public ReadAsBinary ( Stream input ) : bool | ||
input | Stream | The input |
return | bool |
public ReadAsText ( Stream input ) : bool | ||
input | Stream | The input |
return | bool |
public ReadFileAsText ( string filename ) : bool | ||
filename | string | The file to open and read. |
return | bool |
public SaveToFile ( string path, bool asBinary ) : void | ||
path | string | The file path to save to. |
asBinary | bool | If set to |
return | void |