Interface IDataTypes
The Diffusion data type implementations.
Namespace: PushTechnology.ClientInterface.Data
Assembly: Diffusion.Client.dll
Syntax
public interface IDataTypes
Remarks
An instance can be obtained by calling DataTypes.
All value types and delta types implement
Since 5.8
Properties
Binary
Returns the IBinaryDataType.
Declaration
IBinaryDataType Binary { get; }
Property Value
Type | Description |
---|---|
IBinaryDataType |
Remarks
This data type supports arbitrary binary data.
DoubleFloat
Returns the data type that supports double-precision floating point numbers. (Eight-byte IEEE 754).
Declaration
IDataType<double?> DoubleFloat { get; }
Property Value
Type | Description |
---|---|
IDataType<Nullable<Double>> |
Remarks
The floating point value is serialized as CBOR-format binary.
The data type does not support binary deltas.
The data type supports null
Since 6.0.
Int64
Returns the data type that supports 64-bit, signed integer values.
Declaration
IDataType<long?> Int64 { get; }
Property Value
Type | Description |
---|---|
IDataType<Nullable<Int64>> |
Remarks
The integer value is serialized as CBOR-format binary.
The data type does not support binary deltas.
The data type supports null
Since 6.0.
JSON
Returns the IJSONDataType.
Declaration
IJSONDataType JSON { get; }
Property Value
Type | Description |
---|---|
IJSONDataType |
Remarks
JSON is "JavaScript Object Notation", a lightweight data-interchange format. See www.json.org.
RecordV2
Returns the data type that supports data in the form of records and fields.
Declaration
IRecordV2DataType RecordV2 { get; }
Property Value
Type | Description |
---|---|
IRecordV2DataType |
Remarks
Implemented in Version 6.0.
String
Returns the data type that supports string values.
Declaration
IDataType<string> String { get; }
Property Value
Type | Description |
---|---|
IDataType<String> |
Remarks
The string value is serialized as CBOR-format binary.
The data type supports binary deltas.
The data type supports null
Since 6.0.
Methods
Get(String)
Returns a IDataType by type name.
Declaration
IDataType Get(string typeName)
Parameters
Type | Name | Description |
---|---|---|
String | typeName | The data type name. |
Returns
Type | Description |
---|---|
IDataType | The requested data type. |
Get(Type)
Returns a IDataType by value type.
Declaration
IDataType Get(Type valueType)
Parameters
Type | Name | Description |
---|---|---|
Type | valueType | The value type. |
Returns
Type | Description |
---|---|
IDataType | The requested data type. |
Get<TValue>()
Returns a IDataType<TValue>.
Declaration
IDataType<TValue> Get<TValue>()
Returns
Type | Description |
---|---|
IDataType<TValue> | The requested data type. |
Type Parameters
Name | Description |
---|---|
TValue | The value type. |