Class Variant
Assembly: RedLoader.dll
Syntax
public abstract class Variant : IConvertible
Constructors
Variant()
Declaration
Fields
Declaration
protected static readonly IFormatProvider FormatProvider
Field Value
Properties
this[int]
Declaration
public virtual Variant this[int index] { get; set; }
Parameters
Type |
Name |
Description |
int |
index |
|
Property Value
this[string]
Declaration
public virtual Variant this[string key] { get; set; }
Parameters
Type |
Name |
Description |
string |
key |
|
Property Value
Methods
GetTypeCode()
Declaration
public virtual TypeCode GetTypeCode()
Returns
Make<T>()
Declaration
Returns
Type Parameters
Make<T>(out T)
Declaration
public void Make<T>(out T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Type Parameters
Populate<T>(T)
Declaration
public void Populate<T>(T item) where T : class
Parameters
Type |
Name |
Description |
T |
item |
|
Type Parameters
Declaration
public virtual bool ToBoolean(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual byte ToByte(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual char ToChar(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual DateTime ToDateTime(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual decimal ToDecimal(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual double ToDouble(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual short ToInt16(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual int ToInt32(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual long ToInt64(IFormatProvider provider)
Parameters
Returns
ToJSON()
Declaration
Returns
Declaration
public virtual sbyte ToSByte(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual float ToSingle(IFormatProvider provider)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Declaration
public virtual string ToString(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual object ToType(Type conversionType, IFormatProvider provider)
Parameters
Returns
Declaration
public virtual ushort ToUInt16(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual uint ToUInt32(IFormatProvider provider)
Parameters
Returns
Declaration
public virtual ulong ToUInt64(IFormatProvider provider)
Parameters
Returns
Operators
implicit operator bool(Variant)
Declaration
public static implicit operator bool(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
implicit operator decimal(Variant)
Declaration
public static implicit operator decimal(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
implicit operator double(Variant)
Declaration
public static implicit operator double(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
implicit operator Guid(Variant)
Declaration
public static implicit operator Guid(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
implicit operator short(Variant)
Declaration
public static implicit operator short(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
implicit operator int(Variant)
Declaration
public static implicit operator int(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
implicit operator long(Variant)
Declaration
public static implicit operator long(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
implicit operator float(Variant)
Declaration
public static implicit operator float(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
implicit operator string(Variant)
Declaration
public static implicit operator string(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
implicit operator ushort(Variant)
Declaration
public static implicit operator ushort(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
implicit operator uint(Variant)
Declaration
public static implicit operator uint(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
implicit operator ulong(Variant)
Declaration
public static implicit operator ulong(Variant variant)
Parameters
Type |
Name |
Description |
Variant |
variant |
|
Returns
Implements