Class MapSerializer<TKey, TValue>
A generic dictionary serializer.
Inheritance
System.Object
SimpleTypeSerializer<System.Collections.Generic.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, CancellationToken)
Declaration
protected override async Task<IDictionary<TKey, TValue>> 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<System.Collections.Generic.IDictionary<TKey, TValue>> |
Overrides
Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<System.Collections.Generic.IDictionary<TKey, TValue>>.ReadValueAsync(Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryReader, CancellationToken)
WriteValueAsync(IDictionary<TKey, TValue>, Stream, GraphBinaryWriter, CancellationToken)
Declaration
protected override async Task WriteValueAsync(IDictionary<TKey, TValue> value, Stream stream, GraphBinaryWriter writer, CancellationToken cancellationToken = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IDictionary<TKey, TValue> | value | |
| Stream | stream | |
| GraphBinaryWriter | writer | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
Overrides
Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<System.Collections.Generic.IDictionary<TKey, TValue>>.WriteValueAsync(System.Collections.Generic.IDictionary<TKey, TValue>, Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryWriter, CancellationToken)