Fauna .NET Driver 0.1.0-beta
 
Loading...
Searching...
No Matches
IDeserializer.cs
Go to the documentation of this file.
1using Fauna.Mapping;
2
3namespace Fauna.Serialization;
4
5public interface IDeserializer<out T> : IDeserializer
6{
7 new T Deserialize(MappingContext context, ref Utf8FaunaReader reader);
8}
9
10public interface IDeserializer
11{
12 object? Deserialize(MappingContext context, ref Utf8FaunaReader reader);
13}
14
15public abstract class BaseDeserializer<T> : IDeserializer<T>
16{
17 object? IDeserializer.Deserialize(MappingContext context, ref Utf8FaunaReader reader) =>
18 Deserialize(context, ref reader);
19
20 public abstract T Deserialize(MappingContext context, ref Utf8FaunaReader reader);
21}
T Deserialize(MappingContext context, ref Utf8FaunaReader reader)
object? Deserialize(MappingContext context, ref Utf8FaunaReader reader)
new T Deserialize(MappingContext context, ref Utf8FaunaReader reader)
Represents a reader that provides fast, non-cached, forward-only access to serialized data.