A generic interface that defines serialize and deserialize behavior for a specific type, and declares the supported FaunaType. More...
Public Member Functions | |
| new T | Deserialize (MappingContext ctx, ref Utf8FaunaReader reader) |
| Consumes all or some of a Utf8FaunaReader and returns an instance of T . | |
| object? | Deserialize (MappingContext ctx, ref Utf8FaunaReader reader) |
| Consumes all or some of a Utf8FaunaReader and returns an object or null. | |
| void | Serialize (MappingContext ctx, Utf8FaunaWriter writer, object? o) |
| Serializes the provided object into the Utf8FaunaWriter. | |
| List< FaunaType > | GetSupportedTypes () |
| A list of types to which the ISerializer applies. | |
A generic interface that defines serialize and deserialize behavior for a specific type, and declares the supported FaunaType.
An interface that defines serialize and deserialize behavior for each supported FaunaType.
| T | The type ISerializer<T> applies to. |
Definition at line 10 of file ISerializer.cs.
| new T Fauna.Serialization.ISerializer< out T >.Deserialize | ( | MappingContext | ctx, |
| ref Utf8FaunaReader | reader | ||
| ) |
Consumes all or some of a Utf8FaunaReader and returns an instance of T .
| ctx | A MappingContext used to influence deserialization. |
| reader | The Utf8FaunaReader to consume. |
| object? Fauna.Serialization.ISerializer< out T >.Deserialize | ( | MappingContext | ctx, |
| ref Utf8FaunaReader | reader | ||
| ) |
Consumes all or some of a Utf8FaunaReader and returns an object or null.
| ctx | A MappingContext used to influence deserialization. |
| reader | The Utf8FaunaReader to consume. |
| List< FaunaType > Fauna.Serialization.ISerializer< out T >.GetSupportedTypes | ( | ) |
A list of types to which the ISerializer applies.
| void Fauna.Serialization.ISerializer< out T >.Serialize | ( | MappingContext | ctx, |
| Utf8FaunaWriter | writer, | ||
| object? | o | ||
| ) |
Serializes the provided object into the Utf8FaunaWriter.
| ctx | >A MappingContext used to influence serialization. |
| writer | The Utf8FaunaWriter to write to. |
| o | The object to serialize. |