Click or drag to resize
JsonNumber Class
Represents a JSON number.
Inheritance Hierarchy

Namespace: Dextronet.Jsonie
Assembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax
public class JsonNumber : JsonValue

The JsonNumber type exposes the following members.

Constructors
  NameDescription
Public methodJsonNumber(Decimal)
Creates new JSON number of specified value.
Public methodJsonNumber(Double)
Creates new JSON number of specified value.
Public methodJsonNumber(Int32)
Creates new JSON number of specified value.
Public methodJsonNumber(Int64)
Creates new JSON number of specified value.
Public methodJsonNumber(Single)
Creates new JSON number of specified value.
Top
Properties
  NameDescription
Public propertyDoubleValue
Gets the double value.
Public propertyIntegerValue
Gets the integer value.
Public propertyLongValue
Gets the long value.
Public propertySingleValue
Gets the single value.
Public propertyValue
Gets the decimal value.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether current object is equal to another object.
(Overrides ObjectEquals(Object).)
Public methodEquals(JsonDynamic)
Determines whether current object is equal to another object.
Public methodEquals(JsonNumber)
Determines whether current object is equal to another object.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Test whether values of its operands are equal or both null.
Public operatorStatic member(Decimal to JsonNumber)
Performs an implicit conversion from Decimal to JsonNumber.
Public operatorStatic member(Double to JsonNumber)
Performs an implicit conversion from Double to JsonNumber.
Public operatorStatic member(Int32 to JsonNumber)
Performs an implicit conversion from Int32 to JsonNumber.
Public operatorStatic member(Int64 to JsonNumber)
Performs an implicit conversion from Int64 to JsonNumber.
Public operatorStatic member(NullableDecimal to JsonNumber)
Performs an implicit conversion from nullable Decimal to JsonNumber.
Public operatorStatic member(NullableDouble to JsonNumber)
Performs an implicit conversion from nullable Double to JsonNumber.
Public operatorStatic member(NullableInt32 to JsonNumber)
Performs an implicit conversion from nullable Int32 to JsonNumber.
Public operatorStatic member(NullableInt64 to JsonNumber)
Performs an implicit conversion from nullable Int64 to JsonNumber.
Public operatorStatic member(NullableSingle to JsonNumber)
Performs an implicit conversion from nullable Single to JsonNumber.
Public operatorStatic member(Single to JsonNumber)
Performs an implicit conversion from Single to JsonNumber.
Public operatorStatic member(JsonNumber to NullableDecimal)
Performs an implicit conversion from JsonNumber to Decimal.
Public operatorStatic memberInequality
Test whether values of its operands are inequal.
Top
Extension Methods
  NameDescription
Public Extension MethodAsArray
Casts (CType) value to JsonObject.
(Defined by JsonValueExtensions.)
Public Extension MethodAsBoolean
Casts (CType) value to JsonBool.
(Defined by JsonValueExtensions.)
Public Extension MethodAsNumber
Casts (CType) value to JsonNumber.
(Defined by JsonValueExtensions.)
Public Extension MethodAsObject
Casts (CType) value to JsonObject.
(Defined by JsonValueExtensions.)
Public Extension MethodAsString
Casts (CType) value to JsonString.
(Defined by JsonValueExtensions.)
Public Extension MethodToDynamic
Wraps given json value to dynamic type.
(Defined by JsonValueExtensions.)
Top
Remarks
Immutable.
See Also