Click or drag to resize
JsonDynamic Structure
Dynamic wrapper around any JsonValue.

Namespace: Dextronet.Jsonie
Assembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax
public struct JsonDynamic

The JsonDynamic type exposes the following members.

Constructors
  NameDescription
Public methodJsonDynamic
Creates new dynamic wrapper around specified JsonValue.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of items in array or members in object of the dynamic type.
Public propertyIsArray
Tests if this is JSON array.
Public propertyIsBoolean
Tests if this is JSON boolean.
Public propertyIsNull
Tests if this is JSON null.
Public propertyIsNumber
Test if this is JSON number.
Public propertyIsObject
Tests if this is JSON object.
Public propertyIsScalar
Tests if this is JSON string or number or boolean or null.
Public propertyIsString
Tests if this is JSON string.
Public propertyItemInt32
Gets the item stored on given index.
Public propertyItemString
Gets the memeber indexed by given key.
Public propertyValue
Gets the wrapped value.
Top
Methods
  NameDescription
Public methodAdd(JsonValue)
Adds an items to the end of the array.
Public methodAdd(String, JsonValue)
Adds an member with the specified key to this object.
Public methodAddArray
Adds an empty array to the end of the array and returns its instance.
Public methodAddArray(String)
Adds an empty array property and returns it's instance.
Public methodAddObject
Adds an empty object and returns its instance.
Public methodAddObject(String)
Adds an empty object property and returns its instance.
Public methodAddRange
Adds the values of the specified collection to the end of the array.
Public methodContainsKey
Tests whether the object contains a member with the specified key. It does not check the value of the member which might be null.
Public methodContainsKeyNotNull
Tests whether the object contains a member with the specified key and which is not null.
Public methodEquals(Object)
Determines whether current object is equal to another object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(JsonDynamic)
Determines whether current object is equal to another object.
Public methodEquals(JsonValue)
Determines whether current object is equal to another object.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ValueTypeGetHashCode.)
Public methodGetOrAdd(String, JsonDynamic)
Gets the member stored under given key. If key does not exist provided value is stored as new member.
Public methodGetOrAdd(String, JsonValue)
Gets the member stored under given key. If key does not exist provided value is stored as new member.
Public methodGetOrDefault(String, JsonDynamic)
Gets value stored under given key and casts it to dynamic type. If not such member exists than defaultValue is returned.
Public methodGetOrDefault(String, JsonValue)
Gets value stored under given key and returns it as dynamic type. If not such member exists than defaultValue is returned.
Public methodInsert
Inserts an value into the array at the specified index.
Public methodInsertArray
Inserts an empty array at the specified index and returns its instance.
Public methodInsertObject
Adds an empty object at the specified index and returns its instance.
Public methodInsertRange
Inserts the values of a collection into the array at the specified index.
Public methodToJson
Gets to JSON encoded string representing this object.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Test whether values of its operands are equal.
Public operatorStatic member(JsonDynamic to JsonValue)
Performs an explicit conversion from JsonDynamic to JsonValue.
Public operatorStatic member(JsonValue to JsonDynamic)
Performs an explicit conversion from JsonValue to JsonDynamic.
Public operatorStatic member(Boolean to JsonDynamic)
Performs an implicit conversion from Boolean to JsonDynamic.
Public operatorStatic member(Decimal to JsonDynamic)
Performs an implicit conversion from Decimal to JsonDynamic.
Public operatorStatic member(Double to JsonDynamic)
Performs an implicit conversion from Double to JsonDynamic.
Public operatorStatic member(Int32 to JsonDynamic)
Performs an implicit conversion from Int32 to JsonDynamic.
Public operatorStatic member(Int64 to JsonDynamic)
Performs an implicit conversion from Int64 to JsonDynamic.
Public operatorStatic member(NullableBoolean to JsonDynamic)
Performs an implicit conversion from nullable Boolean to JsonDynamic.
Public operatorStatic member(NullableDecimal to JsonDynamic)
Performs an implicit conversion from nullable Decimal to JsonDynamic.
Public operatorStatic member(NullableDouble to JsonDynamic)
Performs an implicit conversion from nullable Double to JsonDynamic.
Public operatorStatic member(NullableInt32 to JsonDynamic)
Performs an implicit conversion from Int32 to JsonDynamic.
Public operatorStatic member(NullableInt64 to JsonDynamic)
Performs an implicit conversion from nullable Int64 to JsonDynamic.
Public operatorStatic member(NullableSingle to JsonDynamic)
Performs an implicit conversion from nullable Single to JsonDynamic.
Public operatorStatic member(Single to JsonDynamic)
Performs an implicit conversion from Single to JsonDynamic.
Public operatorStatic member(String to JsonDynamic)
Performs an implicit conversion from String to JsonDynamic.
Public operatorStatic memberInequality
Test whether values of its operands are inequal.
Top
Extension Methods
  NameDescription
Public Extension MethodToStatic
Returns the value of the dynamic wrapper.
(Defined by JsonDynamicExtensions.)
Top
See Also