This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRage.Game.ModAPI.Ingame.Utilities.MyIniValue
Malware edited this page Dec 21, 2018
·
51 revisions
← Index
** Namespace: ** VRage.Game.ModAPI.Ingame.Utilities
** Assembly: ** VRage.Game.dll
Represents the value of a single configuration item.
| Member | Description |
|---|---|
MyIniKey Key |
|
MyIniValue EMPTY |
| Member | Description |
|---|---|
bool IsEmpty |
| Member | Description |
|---|---|
bool ToBoolean(bool defaultValue) |
Attempts to get this value as aT:System.Boolean. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetBoolean(ref bool value) |
|
char ToChar(char defaultValue) |
Attempts to get this value as aT:System.Char. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetChar(ref char value) |
|
sbyte ToSByte(sbyte defaultValue) |
Attempts to get this value as aT:System.SByte. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetSByte(ref sbyte value) |
|
byte ToByte(byte defaultValue) |
Attempts to get this value as aT:System.Byte. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetByte(ref byte value) |
|
ushort ToUInt16(ushort defaultValue) |
Attempts to get this value as aT:System.UInt16. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetUInt16(ref ushort value) |
|
short ToInt16(short defaultValue) |
Attempts to get this value as aT:System.Int16. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetInt16(ref short value) |
|
uint ToUInt32(uint defaultValue) |
Attempts to get this value as aT:System.UInt32. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetUInt32(ref uint value) |
|
int ToInt32(int defaultValue) |
Attempts to get this value as aT:System.Int32. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetInt32(ref int value) |
|
ulong ToUInt64(ulong defaultValue) |
Attempts to get this value as aT:System.UInt64. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetUInt64(ref ulong value) |
|
long ToInt64(long defaultValue) |
Attempts to get this value as aT:System.Int64. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetInt64(ref long value) |
|
float ToSingle(float defaultValue) |
Attempts to get this value as aT:System.Single. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetSingle(ref float value) |
|
double ToDouble(double defaultValue) |
Attempts to get this value as aT:System.Double. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetDouble(ref double value) |
|
decimal ToDecimal(decimal defaultValue) |
Attempts to get this value as aT:System.Decimal. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetDecimal(ref decimal value) |
|
void GetLines(List<string> lines) |
Retrieves each individual line of this value into the provided list. |
string ToString() |
|
string ToString(string defaultValue) |
Attempts to get this value as aT:System.String. If the value is empty or cannot be understood as this data type, the!:defaultValuewill be returned instead. |
bool TryGetString(ref string value) |
|
void Write(StringBuilder stringBuilder) |
Writes this value as a string to the given string builder. |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!