Class MapSerializer<TKey, TValue>
A generic dictionary serializer.
Inheritance
System.Object
SimpleTypeSerializer<IDictionary<TKey, TValue>>
MapSerializer<TKey, TValue>
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 MapSerializer<TKey, TValue> : SimpleTypeSerializer<IDictionary<TKey, TValue>>, ITypeSerializer
Type Parameters
Name | Description |
---|---|
TKey | The type of keys in the dictionary. |
TValue | The type of values in the dictionary. |
Constructors
MapSerializer()
Initializes a new instance of the MapSerializer<TKey, TValue> class.
Declaration
public MapSerializer()
Methods
ReadValueAsync(Stream, GraphBinaryReader)
Declaration
protected override async Task<IDictionary<TKey, TValue>> ReadValueAsync(Stream stream, GraphBinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | |
GraphBinaryReader | reader |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IDictionary<TKey, TValue>> |
Overrides
Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<IDictionary<TKey, TValue>>.ReadValueAsync(Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryReader)
WriteValueAsync(IDictionary<TKey, TValue>, Stream, GraphBinaryWriter)
Declaration
protected override async Task WriteValueAsync(IDictionary<TKey, TValue> value, Stream stream, GraphBinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<TKey, TValue> | value | |
Stream | stream | |
GraphBinaryWriter | writer |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<IDictionary<TKey, TValue>>.WriteValueAsync(IDictionary<TKey, TValue>, Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryWriter)