Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRage.Game.ModAPI.Ingame.Utilities.MyIniValue

Malware edited this page Jan 26, 2019 · 50 revisions

IndexNamespace Index

MyIniValue Struct

public struct MyIniValue

Represents the value of a single configuration item.

Namespace: VRage.Game.ModAPI.Ingame.Utilities
Assembly: VRage.Game.dll

Fields

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

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
ToBoolean(bool) Attempts to get this value as a System.Boolean . 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 System.Boolean . Fills thevalueon success.
ToChar(char) Attempts to get this value as a System.Char . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetChar(out char) Attempts to get this value as a System.Char . Fills thevalueon success.
ToSByte(sbyte) Attempts to get this value as a System.SByte . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetSByte(out sbyte) Attempts to get this value as a System.SByte . Fills thevalueon success.
ToByte(byte) Attempts to get this value as a System.Byte . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetByte(out byte) Attempts to get this value as a System.Byte . Fills thevalueon success.
ToUInt16(ushort) Attempts to get this value as a System.UInt16 . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetUInt16(out ushort) Attempts to get this value as a System.UInt16 . Fills thevalueon success.
ToInt16(short) Attempts to get this value as a System.Int16 . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetInt16(out short) Attempts to get this value as a System.Int16 . Fills thevalueon success.
ToUInt32(uint) Attempts to get this value as a System.UInt32 . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetUInt32(out uint) Attempts to get this value as a System.UInt32 . Fills thevalueon success.
ToInt32(int) Attempts to get this value as a System.Int32 . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetInt32(out int) Attempts to get this value as a System.Int32 . Fills thevalueon success.
ToUInt64(ulong) Attempts to get this value as a System.UInt64 . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetUInt64(out ulong) Attempts to get this value as a System.UInt64 . Fills thevalueon success.
ToInt64(long) Attempts to get this value as a System.Int64 . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetInt64(out long) Attempts to get this value as a System.Int64 . Fills thevalueon success.
ToSingle(float) Attempts to get this value as a System.Single . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetSingle(out float) Attempts to get this value as a System.Single . Fills thevalueon success.
ToDouble(double) Attempts to get this value as a System.Double . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetDouble(out double) Attempts to get this value as a System.Double . Fills thevalueon success.
ToDecimal(decimal) Attempts to get this value as a System.Decimal . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetDecimal(out decimal) Attempts to get this value as a System.Decimal . Fills thevalueon success.
GetLines(List)
ToString() Attempts to get this value as a System.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 System.String . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.
TryGetString(out string) Attempts to get this value as a System.String . Fills thevalueon success.
Write(StringBuilder) Writes this value as a string to the given string builder.
Clone this wiki locally