Value
public class Value : IYarnValue, IConvertibleInherits from System.Object
Implements Yarn.IYarnValue, System.IConvertible
#Constructors
#Value(IType, IConvertible)
public Value(IType type, IConvertible internalValue)Parameters
value(unknown)The value that this Value should contain.typeYarn.ITypeinternalValueSystem.IConvertible
value is another Value, its contents
will be copied into the new instance.#Value(Value)
public Value(Value value)Parameters
valueYarn.ValueThe value that this Value should contain.
value is another Value, its contents
will be copied into the new instance.#Properties
#Type
public Yarn.IType Type { get; internal set; }Type IType
#Methods
#CompareTo(object)
null.public int CompareTo(object obj)Parameters
objobjectThe object to compare to.
Returns Int32: Returns the same results as System.IComparable.CompareTo(System.Object).
Exceptions
System.ArgumentExceptionThrown whenobjis not a Value.
#ConvertTo(System.Type)
public object ConvertTo(System.Type targetType)Parameters
targetTypeSystem.TypeThe new type
Returns Object: the value now as a converted object
#ConvertTo<T>()
public T ConvertTo<T>()
where T : IConvertibleParameters
targetType(unknown)The new type
Returns T: the value now as a converted object
#From(IConvertible)
public static Value From(IConvertible convertible)Parameters
convertibleSystem.IConvertibleThe IConvertible desired to be converted into a Yarn value
Returns Value: The Yarn value
#GetHashCode()
public override int GetHashCode()Returns Int32
#GetTypeCode()
public TypeCode GetTypeCode()Returns TypeCode
#ToBoolean(IFormatProvider)
public bool ToBoolean(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns Boolean
#ToByte(IFormatProvider)
public byte ToByte(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns Byte
#ToChar(IFormatProvider)
public char ToChar(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns Char
#ToDateTime(IFormatProvider)
public DateTime ToDateTime(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns DateTime
#ToDecimal(IFormatProvider)
public decimal ToDecimal(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns Decimal
#ToDouble(IFormatProvider)
public double ToDouble(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns Double
#ToInt16(IFormatProvider)
public short ToInt16(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns Int16
#ToInt32(IFormatProvider)
public int ToInt32(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns Int32
#ToInt64(IFormatProvider)
public long ToInt64(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns Int64
#ToSByte(IFormatProvider)
public sbyte ToSByte(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns SByte
#ToSingle(IFormatProvider)
public float ToSingle(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns Single
#ToString()
public override string ToString()Returns String: The string representation of this value
#ToString(IFormatProvider)
public string ToString(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns String
#ToType(Type, IFormatProvider)
public object ToType(Type conversionType, IFormatProvider provider)Parameters
conversionTypeSystem.TypeproviderSystem.IFormatProvider
Returns Object
#ToUInt16(IFormatProvider)
public ushort ToUInt16(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns UInt16
#ToUInt32(IFormatProvider)
public uint ToUInt32(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns UInt32
#ToUInt64(IFormatProvider)
public ulong ToUInt64(IFormatProvider provider)Parameters
providerSystem.IFormatProvider
Returns UInt64
Generated from Yarn Spinner for Unity 3.3.