Value class
- Last UpdatedJul 22, 2024
- 1 minute read
Create a new value
Syntax
public static Value Create(ValueType valtype, object value)
Description
Creates a new Value of the specified ValueType. See ValueType enumerations for Value types.
Convert value to a different type
Syntax
public byte GetAsByte()
public sbyte GetAsSByte()
public char GetAsChar()
public bool GetAsBool()
public short GetAsInt16()
public ushort GetAsUInt16()
public int GetAsInt32()
public uint GetAsUInt32()
public long GetAsInt64()
public ulong GetAsUInt64()
public float GetAsSingle()
public double GetAsDouble()
public string GetAsString()
public decimal GetAsDecimal()
public DateTime GetAsDateTime()
public TimeSpan GetAsTimeSpan()
public Guid GetAsGuid()
public byte[] GetAsByteArray()
Description
Attempts to convert the Value to the specified type. See ValueType enumerations for Value types.