Coherent UI for Unity3D  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Coherent.UI.Binding.Value Class Reference

Type for representing generic JavaScript values More...

Public Member Functions

 Value ()
 Create a null value More...
 
 Value (bool value)
 Create a boolean value More...
 
 Value (int value)
 Create an integer value More...
 
 Value (uint value)
 Create an unsigned integer value More...
 
 Value (sbyte value)
 Create a signed byte value More...
 
 Value (byte value)
 Create a byte value More...
 
 Value (float value)
 Create a float value More...
 
 Value (double value)
 Create a double value More...
 
 Value (string value)
 Create a string value More...
 
 Value (Value[] value)
 Create an array value More...
 
 Value (Dictionary< string, Value > value)
 Create an object value More...
 
 Value (ValueObject value)
 Create an object value More...
 
override bool Equals (object obj)
 Compare to another object More...
 
override int GetHashCode ()
 Hash code for Value More...
 

Static Public Member Functions

static implicit operator bool (Value value)
 cast a value to a boolean More...
 
static implicit operator int (Value value)
 cast a value to an int More...
 
static implicit operator uint (Value value)
 cast a value to an uint More...
 
static implicit operator sbyte (Value value)
 cast a value to a signed byte More...
 
static implicit operator byte (Value value)
 cast a value to a byte More...
 
static implicit operator float (Value value)
 cast a value to a float More...
 
static implicit operator double (Value value)
 cast a value to a double More...
 
static implicit operator string (Value value)
 cast a value to a string More...
 
static implicit operator Value[] (Value value)
 cast a value to an array More...
 
static implicit operator Dictionary< string, Value > (Value value)
 cast a value to a dictionary of properties More...
 
static bool operator== (Value lhs, Value rhs)
 Compares two Value objects More...
 
static bool operator!= (Value lhs, Value rhs)
 Compares two Value objects More...
 

Public Attributes

ValueType Type
 The type of the data stored in this Value instance More...
 

Detailed Description

Type for representing generic JavaScript values

Constructor & Destructor Documentation

Coherent.UI.Binding.Value.Value ( )
inline

Create a null value

Coherent.UI.Binding.Value.Value ( bool  value)
inline

Create a boolean value

Parameters
valuethe integer value of the Value object
Coherent.UI.Binding.Value.Value ( int  value)
inline

Create an integer value

Parameters
valuethe integer value of the Value object
Coherent.UI.Binding.Value.Value ( uint  value)
inline

Create an unsigned integer value

Parameters
valuethe unsigned integer value of the Value object
Coherent.UI.Binding.Value.Value ( sbyte  value)
inline

Create a signed byte value

Parameters
valuethe signed byte value of the Value object
Coherent.UI.Binding.Value.Value ( byte  value)
inline

Create a byte value

Parameters
valuethe byte value of the Value object
Coherent.UI.Binding.Value.Value ( float  value)
inline

Create a float value

Parameters
valuethe float value of the Value object
Coherent.UI.Binding.Value.Value ( double  value)
inline

Create a double value

Parameters
valuethe double value of the Value object
Coherent.UI.Binding.Value.Value ( string  value)
inline

Create a string value

Parameters
valuethe string value of the Value object
Coherent.UI.Binding.Value.Value ( Value[]  value)
inline

Create an array value

Parameters
valuethe array value of the Value object
Coherent.UI.Binding.Value.Value ( Dictionary< string, Value value)
inline

Create an object value

Parameters
valuedictionary of properties of the Value object
Coherent.UI.Binding.Value.Value ( ValueObject  value)
inline

Create an object value

Parameters
valuedictionary of properties of the Value object

Member Function Documentation

override bool Coherent.UI.Binding.Value.Equals ( object  obj)
inline

Compare to another object

Parameters
obj
Returns
true if obj is a Value instance equal to this one
override int Coherent.UI.Binding.Value.GetHashCode ( )
inline

Hash code for Value

Returns
hash code for the current instance
static implicit Coherent.UI.Binding.Value.operator bool ( Value  value)
inlinestatic

cast a value to a boolean

Parameters
valuevalue to be casted
Returns
the boolean stored in the value
static implicit Coherent.UI.Binding.Value.operator byte ( Value  value)
inlinestatic

cast a value to a byte

Parameters
valuevalue to be cast
Returns
the byte stored in the value
static implicit Coherent.UI.Binding.Value.operator Dictionary< string, Value > ( Value  value)
inlinestatic

cast a value to a dictionary of properties

Parameters
valuevalue to be casted
Returns
the dictionary of properties of the value
static implicit Coherent.UI.Binding.Value.operator double ( Value  value)
inlinestatic

cast a value to a double

Parameters
valuevalue to be casted
Returns
the double stored in the value
static implicit Coherent.UI.Binding.Value.operator float ( Value  value)
inlinestatic

cast a value to a float

Parameters
valuevalue to be casted
Returns
the float stored in the value
static implicit Coherent.UI.Binding.Value.operator int ( Value  value)
inlinestatic

cast a value to an int

Parameters
valuevalue to be casted
Returns
the int stored in the value
static implicit Coherent.UI.Binding.Value.operator sbyte ( Value  value)
inlinestatic

cast a value to a signed byte

Parameters
valuevalue to be cast
Returns
the signed byte stored in the value
static implicit Coherent.UI.Binding.Value.operator string ( Value  value)
inlinestatic

cast a value to a string

Parameters
valuevalue to be casted
Returns
the string stored in the value
static implicit Coherent.UI.Binding.Value.operator uint ( Value  value)
inlinestatic

cast a value to an uint

Parameters
valuevalue to be casted
Returns
the unsigned int stored in the value
static implicit Coherent.UI.Binding.Value.operator Value[] ( Value  value)
inlinestatic

cast a value to an array

Parameters
valuevalue to be casted
Returns
the array of Value objects stored in the value
static bool Coherent.UI.Binding.Value.operator!= ( Value  lhs,
Value  rhs 
)
inlinestatic

Compares two Value objects

Parameters
lhsobject to be compared
rhsobject to be compared
Returns
false if the objects are from the same type and have the same values
static bool Coherent.UI.Binding.Value.operator== ( Value  lhs,
Value  rhs 
)
inlinestatic

Compares two Value objects

Parameters
lhsobject to be compared
rhsobject to be compared
Returns
true if the objects are from the same type and have the same values

Member Data Documentation

ValueType Coherent.UI.Binding.Value.Type

The type of the data stored in this Value instance