Class
JsonBaseType

Boxes a single JSON value which could be an array, a string, an int, a double, or a bool.

Definition

Namespace:ArtOfTest.WebAii.Javascript

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class JsonBaseType

Inheritance: objectJsonBaseType

Derived Classes: JsonCollection

Properties

InternalValue

Gets / sets the value of this JSON object.

Declaration

cs-api-definition
protected object InternalValue { get; set; }

Property Value

object

A generic object

this[int]

Not supported.

Declaration

cs-api-definition
public virtual JsonBaseType this[int index] { get; set; }

Parameters

index

int

Not supported.

Property Value

JsonBaseType

Not supported.

this[string]

Not supported.

Declaration

cs-api-definition
public virtual JsonBaseType this[string key] { get; set; }

Parameters

key

string

Not supported.

Property Value

JsonBaseType

Not supported.

Operators

implicit operator bool(JsonBaseType)

Implicitly converts this JSON object to a bool.

Declaration

cs-api-definition
public static implicit operator bool(JsonBaseType type)

Parameters

type

JsonBaseType

The JSON object to convert.

Returns

bool

The bool value contained in the JSON object.

Exceptions

InvalidCastException

Thrown when the JSON object does not contain a bool.

implicit operator double(JsonBaseType)

Implicitly converts this JSON object to a double.

Declaration

cs-api-definition
public static implicit operator double(JsonBaseType type)

Parameters

type

JsonBaseType

The JSON object to convert.

Returns

double

The double value contained in the JSON object.

Exceptions

InvalidCastException

Thrown when the JSON object does not contain a double.

implicit operator int(JsonBaseType)

Implicitly converts this JSON object to an int.

Declaration

cs-api-definition
public static implicit operator int(JsonBaseType type)

Parameters

type

JsonBaseType

The JSON object to convert.

Returns

int

The int value contained in the JSON object.

Exceptions

InvalidCastException

Thrown when the JSON object does not contain an int.

implicit operator string(JsonBaseType)

Implicitly converts this JSON object to a string.

Declaration

cs-api-definition
public static implicit operator string(JsonBaseType type)

Parameters

type

JsonBaseType

The JSON object to convert.

Returns

string

The string value contained in the JSON object.

Exceptions

InvalidCastException

Thrown when the JSON object does not contain a string.