Assembly: VRage.Game.dll

public struct MyIniValue

Represents the value of a single configuration item.

Fields

Member Description
static EMPTY Represents an empty MyIniValue
Key Gets the MyIniKey this value was retrieved from

Properties

Member Description
IsEmpty Determines whether this value is empty. Be aware that an empty string is not considered to be an empty value.

Constructors

Member Description
MyIniValue(MyIniKey, string)

Methods

Member Description
GetLines(List) Retrieves each individual line of this value into the provided list.
ToBoolean(bool) Attempts to get this value as a bool . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToByte(byte) Attempts to get this value as a byte . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToChar(char) Attempts to get this value as a char . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToDecimal(decimal) Attempts to get this value as a decimal . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToDouble(double) Attempts to get this value as a double . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToInt16(short) Attempts to get this value as a short . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToInt32(int) Attempts to get this value as a int . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToInt64(long) Attempts to get this value as a long . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToSByte(sbyte) Attempts to get this value as a sbyte . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToSingle(float) Attempts to get this value as a float . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToString() Attempts to get this value as a string . If the value is empty or cannot be understood as this data type, an empty string will be returned instead.
ToString(string) Attempts to get this value as a string . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToUInt16(ushort) Attempts to get this value as a ushort . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToUInt32(uint) Attempts to get this value as a uint . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
ToUInt64(ulong) Attempts to get this value as a ulong . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetBoolean(out bool) Attempts to get this value as a bool . Fills thevalueon success.
TryGetByte(out byte) Attempts to get this value as a byte . Fills thevalueon success.
TryGetChar(out char) Attempts to get this value as a char . Fills thevalueon success.
TryGetDecimal(out decimal) Attempts to get this value as a decimal . Fills thevalueon success.
TryGetDouble(out double) Attempts to get this value as a double . Fills thevalueon success.
TryGetInt16(out short) Attempts to get this value as a short . Fills thevalueon success.
TryGetInt32(out int) Attempts to get this value as a int . Fills thevalueon success.
TryGetInt64(out long) Attempts to get this value as a long . Fills thevalueon success.
TryGetSByte(out sbyte) Attempts to get this value as a sbyte . Fills thevalueon success.
TryGetSingle(out float) Attempts to get this value as a float . Fills thevalueon success.
TryGetString(out string) Attempts to get this value as a string . Fills thevalueon success.
TryGetUInt16(out ushort) Attempts to get this value as a ushort . Fills thevalueon success.
TryGetUInt32(out uint) Attempts to get this value as a uint . Fills thevalueon success.
TryGetUInt64(out ulong) Attempts to get this value as a ulong . Fills thevalueon success.
Write(StringBuilder) Writes this value as a string to the given string builder.