An abstract class encapsulating common serialization and deserialization logic. More...
Public Member Functions | |
| virtual List< FaunaType > | GetSupportedTypes () |
| Supported types for the serializer. | |
Public Member Functions inherited from Fauna.Serialization.ISerializer< T > | |
| 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. | |
Protected Member Functions | |
| string | UnsupportedSerializationTypeMessage (Type type) |
| A helper to build an unsupported serialization type exception message. | |
Static Protected Member Functions | |
| static TokenType | EndTokenFor (TokenType start) |
| Gets the end token for a given start token. | |
An abstract class encapsulating common serialization and deserialization logic.
| T | The type the BaseSerializer applies to. |
Definition at line 53 of file ISerializer.cs.
|
staticprotected |
Gets the end token for a given start token.
| start | A start token. |
| ArgumentOutOfRangeException | Thrown when the start token does not have a related end token. |
Definition at line 67 of file ISerializer.cs.
|
virtual |
Supported types for the serializer.
|
protected |
A helper to build an unsupported serialization type exception message.
| type | The unsupported type |