1.14.0.5
Hummingbird
A modern user interface library for games
cohtml.Net.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 (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 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

◆ Value() [1/10]

cohtml.Net.Value.Value ( )
inline

Create a null value

◆ Value() [2/10]

cohtml.Net.Value.Value ( bool  value)
inline

Create a boolean value

Parameters
valuethe integer value of the Value object

◆ Value() [3/10]

cohtml.Net.Value.Value ( int  value)
inline

Create an integer value

Parameters
valuethe integer value of the Value object

◆ Value() [4/10]

cohtml.Net.Value.Value ( uint  value)
inline

Create an unsigned integer value

Parameters
valuethe unsigned integer value of the Value object

◆ Value() [5/10]

cohtml.Net.Value.Value ( float  value)
inline

Create a float value

Parameters
valuethe float value of the Value object

◆ Value() [6/10]

cohtml.Net.Value.Value ( double  value)
inline

Create a double value

Parameters
valuethe double value of the Value object

◆ Value() [7/10]

cohtml.Net.Value.Value ( string  value)
inline

Create a string value

Parameters
valuethe string value of the Value object

◆ Value() [8/10]

cohtml.Net.Value.Value ( Value []  value)
inline

Create an array value

Parameters
valuethe array value of the Value object

◆ Value() [9/10]

cohtml.Net.Value.Value ( Dictionary< string, Value value)
inline

Create an object value

Parameters
valuedictionary of properties of the Value object

◆ Value() [10/10]

cohtml.Net.Value.Value ( ValueObject  value)
inline

Create an object value

Parameters
valuedictionary of properties of the Value object

Member Function Documentation

◆ Equals()

override bool cohtml.Net.Value.Equals ( object  obj)
inline

Compare to another object

Parameters
obj
Returns
true if obj is a Value instance equal to this one

◆ GetHashCode()

override int cohtml.Net.Value.GetHashCode ( )
inline

Hash code for Value

Returns
hash code for the current instance

◆ operator bool()

static implicit cohtml.Net.Value.operator bool ( Value  value)
inlinestatic

cast a value to a boolean

Parameters
valuevalue to be casted
Returns
the boolean stored in the value

◆ operator Dictionary< string, Value >()

static implicit cohtml.Net.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

◆ operator double()

static implicit cohtml.Net.Value.operator double ( Value  value)
inlinestatic

cast a value to a double

Parameters
valuevalue to be casted
Returns
the double stored in the value

◆ operator float()

static implicit cohtml.Net.Value.operator float ( Value  value)
inlinestatic

cast a value to a float

Parameters
valuevalue to be casted
Returns
the float stored in the value

◆ operator int()

static implicit cohtml.Net.Value.operator int ( Value  value)
inlinestatic

cast a value to an int

Parameters
valuevalue to be casted
Returns
the int stored in the value

◆ operator string()

static implicit cohtml.Net.Value.operator string ( Value  value)
inlinestatic

cast a value to a string

Parameters
valuevalue to be casted
Returns
the string stored in the value

◆ operator uint()

static implicit cohtml.Net.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

◆ operator Value[]()

static implicit cohtml.Net.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

◆ operator!=()

static bool cohtml.Net.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

◆ operator==()

static bool cohtml.Net.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

◆ Type

ValueType cohtml.Net.Value.Type

The type of the data stored in this Value instance