Ditto 4.8.1-rc.1
Loading...
Searching...
No Matches
DittoSDK.DittoRegister Class Reference

Represents a CRDT register that can be upserted as part of a document or assigned to a property during an update of a document. More...

Inheritance diagram for DittoSDK.DittoRegister:
DittoSDK.DittoMutableRegister

Public Member Functions

 DittoRegister (object value)
 Initializes a new instance of the DittoRegister class. The register is initialized with the provided value that can be used as part of a document's content.
 

Properties

object Value [get, set]
 Gets the value of the register.
 
string String [get]
 Gets the underlying value of the document identifier as a string if possible, otherwise the return value will be null.
 
string StringValue [get]
 Gets the underlying value of the document identifier as a string if possible, otherwise the return value will be "" (an empty string).
 
int Int32Value [get]
 Gets the underlying value of the document identifier as an Int32 if possible, otherwise the return value will be 0.
 
long Int64Value [get]
 Gets the underlying value of the document identifier as an Int64 if possible, otherwise the return value will be 0.
 
uint UInt32Value [get]
 Gets the underlying value of the document identifier as a UInt32 if possible, otherwise the return value will be 0.
 
ulong UInt64Value [get]
 Gets the underlying value of the document identifier as a UInt64 if possible, otherwise the return value will be 0.
 
float FloatValue [get]
 Gets the underlying value of the document identifier as a Float if possible, otherwise the return value will be 0.0.
 
double DoubleValue [get]
 Gets the underlying value of the document identifier as a UInt32 if possible, otherwise the return value will be 0.
 
bool BooleanValue [get]
 Gets the underlying value of the document identifier as a bool if possible, otherwise the return value will be false.
 
List< object > List [get]
 Gets the underlying value of the document identifier as a List<object> if possible, otherwise the return value will be null.
 
List< object > ListValue [get]
 Gets the underlying value of the document identifier as a List<object> if possible, otherwise the return value will be [] (an empty list).
 
Dictionary< string, object > Dictionary [get]
 Gets the underlying value of the document identifier as a Dictionary<string, object> if possible, otherwise the return value will be null.
 
Dictionary< string, object > DictionaryValue [get]
 Gets the underlying value of the document identifier as a Dictionary<string, object> if possible, otherwise the return value will be {} (an empty dictionary).
 

Detailed Description

Represents a CRDT register that can be upserted as part of a document or assigned to a property during an update of a document.

Constructor & Destructor Documentation

◆ DittoRegister()

DittoSDK.DittoRegister.DittoRegister ( object value)
inline

Initializes a new instance of the DittoRegister class. The register is initialized with the provided value that can be used as part of a document's content.

Parameters
valueThe value to store in the register.