Class JsonValueBase
Abstract class which acts as the base class for all JSON based types in NCache.
Inheritance
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public abstract class JsonValueBase
Constructors
JsonValueBase()
The default constructor of class JsonValueBase.
Declaration
protected JsonValueBase()
JsonValueBase(Object, JsonDataType)
An overloaded constructor which pass the value to JSONDataType provided.
Declaration
protected JsonValueBase(object value, JsonDataType dataType)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Object to be passed. |
JsonDataType | dataType | Type of the data contained by the Json class. |
Properties
DataType
Type of the JSON object.
Declaration
public virtual JsonDataType DataType { get; }
Property Value
Type | Description |
---|---|
JsonDataType | Type of data contained by the Json class. |
InMemorySize
In memory size of the object.
Declaration
protected virtual int InMemorySize { get; }
Property Value
Type | Description |
---|---|
System.Int32 | In memory size of the object. |
Size
Size of the object.
Declaration
protected virtual int Size { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Size of the object. |
Value
Value of the object.
Declaration
public virtual object Value { get; }
Property Value
Type | Description |
---|---|
System.Object | Value of the object. |
Methods
Parse(String)
Parses string representation of Json object and returns the parsed object.
Declaration
public static JsonValueBase Parse(string json)
Parameters
Type | Name | Description |
---|---|---|
System.String | json | Type of Json. |
Returns
Type | Description |
---|---|
JsonValueBase | An abstract class which acts as the base class for all JSON based types in NCache. |
Operators
Implicit(Boolean to JsonValueBase)
This operator implicitly converts Boolean value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(Byte to JsonValueBase)
This operator implicitly converts Byte value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(DateTime to JsonValueBase)
This operator implicitly converts DateTime value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(DateTime value)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(Decimal to JsonValueBase)
This operator implicitly converts Decimal value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(decimal value)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(Double to JsonValueBase)
This operator implicitly converts Double to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(Int16 to JsonValueBase)
This operator implicitly converts Int16 value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(short value)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(Int32 to JsonValueBase)
This operator implicitly converts Int32 value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(Int64 to JsonValueBase)
This operator implicitly converts Int64 value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(long value)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(SByte to JsonValueBase)
This operator implicitly converts SByte value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(sbyte value)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(Single to JsonValueBase)
This operator implicitly converts Single to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(float value)
Parameters
Type | Name | Description |
---|---|---|
System.Single | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(String to JsonValueBase)
This operator implicitly converts String value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(UInt16 to JsonValueBase)
This operator implicitly converts UInt16 value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(ushort value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(UInt32 to JsonValueBase)
This operator implicitly converts UInt32 value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |
Implicit(UInt64 to JsonValueBase)
This operator implicitly converts UInt64 value to JsonValueBase.
Declaration
public static implicit operator JsonValueBase(ulong value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | value | Value in JsonValueBase. |
Returns
Type | Description |
---|---|
JsonValueBase | Abstract class which acts as the base class for all JSON based types in NCache. |