Class SetSerializer<TSet, TMember>
A generic set serializer.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Gremlin.Net.Structure.IO.GraphBinary.Types
Assembly: cs.temp.dll.dll
Syntax
public class SetSerializer<TSet, TMember> : SimpleTypeSerializer<TSet>, ITypeSerializer where TSet : ISet<TMember>, new()
Type Parameters
Name | Description |
---|---|
TSet | The type of the set to serialize. |
TMember | The type of elements in the set. |
Constructors
SetSerializer()
Initializes a new instance of the SetSerializer<TSet, TMember> class.
Declaration
public SetSerializer()
Methods
ReadValueAsync(Stream, GraphBinaryReader, CancellationToken)
Declaration
protected override async Task<TSet> ReadValueAsync(Stream stream, GraphBinaryReader reader, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | |
GraphBinaryReader | reader | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TSet> |
Overrides
Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<TSet>.ReadValueAsync(Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryReader, CancellationToken)
WriteValueAsync(TSet, Stream, GraphBinaryWriter, CancellationToken)
Declaration
protected override async Task WriteValueAsync(TSet value, Stream stream, GraphBinaryWriter writer, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
TSet | value | |
Stream | stream | |
GraphBinaryWriter | writer | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<TSet>.WriteValueAsync(TSet, Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryWriter, CancellationToken)