Interface IDataTypes
- Namespace
- PushTechnology.ClientInterface.Data
- Assembly
- Diffusion.Client.dll
The Diffusion data type implementations.
public interface IDataTypes
Remarks
An instance can be obtained by calling DataTypes.
All value types and delta types implement System.Object.Equals(object)
equality and System.Object.ToString().
Since 5.8
Properties
Binary
Returns the Binary data type.
IBinaryDataType Binary { get; }
Property Value
- IBinaryDataType
The Binary data type.
Remarks
This data type supports arbitrary binary data.
DoubleFloat
Returns the data type that supports double-precision floating point numbers. (Eight-byte IEEE 754).
IDataType<double?> DoubleFloat { get; }
Property Value
Remarks
The floating point value is serialized as CBOR-format binary.
The data type does not support binary deltas.
The data type supports null System.Double instances.
Since 6.0.
Int64
Returns the data type that supports 64-bit, signed integer values.
IDataType<long?> Int64 { get; }
Property Value
Remarks
The integer value is serialized as CBOR-format binary.
The data type does not support binary deltas.
The data type supports null System.Int64 instances.
Since 6.0.
JSON
Returns the JSON data type.
IJSONDataType JSON { get; }
Property Value
- IJSONDataType
The JSON data type.
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.
IRecordV2DataType RecordV2 { get; }
Property Value
- IRecordV2DataType
The data type for records and fields.
Remarks
Implemented in Version 6.0.
String
Returns the data type that supports string values.
IDataType<string> String { get; }
Property Value
Remarks
The string value is serialized as CBOR-format binary.
The data type supports binary deltas.
The data type supports null System.String instances.
Since 6.0.
Methods
Get(string)
Returns a IDataType by type name.
IDataType Get(string typeName)
Parameters
typeNamestringThe data type name.
Returns
- IDataType
The requested data type.
Exceptions
- ArgumentException
There is no data type with the given name.
Get(Type)
Returns a IDataType by value type.
IDataType Get(Type valueType)
Parameters
valueTypeTypeThe value type.
Returns
- IDataType
The requested data type.
Exceptions
- ArgumentException
There is no data type with the given value type.
Get<TValue>()
Returns a IDataType<TValue>.
IDataType<TValue> Get<TValue>()
Returns
- IDataType<TValue>
The requested data type.
Type Parameters
TValueThe value type.
Exceptions
- ArgumentException
There is no data type with the given value type.