C# Class NetServ.Net.Json.JsonNumber

Inheritance: JsonTypeSkeleton, IJsonNumber
Mostrar archivo Open project: appcelerator/entourage Class Usage Examples

Public Properties

Property Type Description
MaxValue JsonNumber
MinValue JsonNumber
Zero JsonNumber

Public Methods

Method Description
CompareTo ( IJsonNumber other ) : int

Returns a value indicating equality with the specified instance.

CompareTo ( JsonNumber other ) : int

Returns a value indicating equality with the specified instance.

CompareTo ( double other ) : int

Returns a value indicating equality with the specified System.Double.

Equals ( IJsonNumber other ) : bool

Returns a indicating whether this instance is equal to the specified NetServ.Net.Json.IJsonNumber.

Equals ( JsonNumber other ) : bool

Returns a indicating whether this instance is equal to the specified JsonNumber.

Equals ( JsonNumber a, JsonNumber b ) : bool

Determines if the two NetServ.Net.Json.JsonNumbers are equal.

Equals ( double other ) : bool

Returns a indicating whether this instance is equal to the specified System.Double.

Equals ( object obj ) : bool

Returns a indicating whether this instance is equal to the specified System.Object.

GetHashCode ( ) : int

Returns a hash code for this instance.

JsonNumber ( byte value ) : System

Initialises a new instance of the JsonNumber class and specifies the value.

JsonNumber ( double value ) : System

Initialises a new instance of the JsonNumber class and specifies the value.

JsonNumber ( int value ) : System

Initialises a new instance of the JsonNumber class and specifies the value.

JsonNumber ( long value ) : System

Initialises a new instance of the JsonNumber class and specifies the value.

JsonNumber ( short value ) : System

Initialises a new instance of the JsonNumber class and specifies the value.

ToString ( ) : string

Returns a System.String representation of this JsonNumber instance.

ToString ( string format, IFormatProvider formatProvider ) : string

Returns a System.String representation of this JsonNumber instance.

Write ( IJsonWriter writer ) : void

Writes the contents of this Json type using the specified NetServ.Net.Json.IJsonWriter.

operator ( ) : bool

Inequality operator.

Private Methods

Method Description
JsonNumber ( sbyte value ) : System
JsonNumber ( uint value ) : System
JsonNumber ( ulong value ) : System
JsonNumber ( ushort value ) : System

Method Details

CompareTo() public method

Returns a value indicating equality with the specified instance.
public CompareTo ( IJsonNumber other ) : int
other IJsonNumber The to compare.
return int

CompareTo() public method

Returns a value indicating equality with the specified instance.
public CompareTo ( JsonNumber other ) : int
other JsonNumber The JsonNumber to compare.
return int

CompareTo() public method

Returns a value indicating equality with the specified System.Double.
public CompareTo ( double other ) : int
other double The Double to compare.
return int

Equals() public method

Returns a indicating whether this instance is equal to the specified NetServ.Net.Json.IJsonNumber.
public Equals ( IJsonNumber other ) : bool
other IJsonNumber The value to compare.
return bool

Equals() public method

Returns a indicating whether this instance is equal to the specified JsonNumber.
public Equals ( JsonNumber other ) : bool
other JsonNumber The value to compare.
return bool

Equals() public static method

Determines if the two NetServ.Net.Json.JsonNumbers are equal.
public static Equals ( JsonNumber a, JsonNumber b ) : bool
a JsonNumber The first JsonNumber.
b JsonNumber The second JsonNumber.
return bool

Equals() public method

Returns a indicating whether this instance is equal to the specified System.Double.
public Equals ( double other ) : bool
other double The value to compare.
return bool

Equals() public method

Returns a indicating whether this instance is equal to the specified System.Object.
public Equals ( object obj ) : bool
obj object The object to compare.
return bool

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

JsonNumber() public method

Initialises a new instance of the JsonNumber class and specifies the value.
public JsonNumber ( byte value ) : System
value byte The value of the new instance.
return System

JsonNumber() public method

Initialises a new instance of the JsonNumber class and specifies the value.
public JsonNumber ( double value ) : System
value double The value of the new instance.
return System

JsonNumber() public method

Initialises a new instance of the JsonNumber class and specifies the value.
public JsonNumber ( int value ) : System
value int The value of the new instance.
return System

JsonNumber() public method

Initialises a new instance of the JsonNumber class and specifies the value.
public JsonNumber ( long value ) : System
value long The value of the new instance.
return System

JsonNumber() public method

Initialises a new instance of the JsonNumber class and specifies the value.
public JsonNumber ( short value ) : System
value short The value of the new instance.
return System

ToString() public method

Returns a System.String representation of this JsonNumber instance.
public ToString ( ) : string
return string

ToString() public method

Returns a System.String representation of this JsonNumber instance.
public ToString ( string format, IFormatProvider formatProvider ) : string
format string The format.
formatProvider IFormatProvider The culture specific format provider.
return string

Write() public method

Writes the contents of this Json type using the specified NetServ.Net.Json.IJsonWriter.
public Write ( IJsonWriter writer ) : void
writer IJsonWriter The Json writer.
return void

operator() public static method

Inequality operator.
public static operator ( ) : bool
return bool

Property Details

MaxValue public_oe static_oe property

Defines the lasrgest Json number. This field is readonly.
public static JsonNumber,NetServ.Net.Json MaxValue
return JsonNumber

MinValue public_oe static_oe property

Defines the smallest Json number. This field is readonly.
public static JsonNumber,NetServ.Net.Json MinValue
return JsonNumber

Zero public_oe static_oe property

Defines a Json number with a value of zero. This field is readonly.
public static JsonNumber,NetServ.Net.Json Zero
return JsonNumber