Search Results for

    Show / Hide Table of Contents

    Class MapSerializer<TKey, TValue>

    A generic dictionary serializer.

    Inheritance
    System.Object
    SimpleTypeSerializer<IDictionary<TKey, TValue>>
    MapSerializer<TKey, TValue>
    Implements
    ITypeSerializer
    Inherited Members
    SimpleTypeSerializer<IDictionary<TKey, TValue>>.DataType
    SimpleTypeSerializer<IDictionary<TKey, TValue>>.WriteAsync(Object, Stream, GraphBinaryWriter)
    SimpleTypeSerializer<IDictionary<TKey, TValue>>.WriteValueAsync(Object, Stream, GraphBinaryWriter, Boolean)
    SimpleTypeSerializer<IDictionary<TKey, TValue>>.WriteValueAsync(IDictionary<TKey, TValue>, Stream, GraphBinaryWriter)
    SimpleTypeSerializer<IDictionary<TKey, TValue>>.ReadAsync(Stream, GraphBinaryReader)
    SimpleTypeSerializer<IDictionary<TKey, TValue>>.ReadValueAsync(Stream, GraphBinaryReader, Boolean)
    SimpleTypeSerializer<IDictionary<TKey, TValue>>.ReadValueAsync(Stream, GraphBinaryReader)
    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)

    Reads a non-nullable value according to the type format.

    Declaration
    protected override async Task<IDictionary<TKey, TValue>> ReadValueAsync(Stream stream, GraphBinaryReader reader)
    Parameters
    Type Name Description
    Stream stream

    The GraphBinary data to parse.

    GraphBinaryReader reader

    A GraphBinaryReader.

    Returns
    Type Description
    System.Threading.Tasks.Task<IDictionary<TKey, TValue>>

    The read value.

    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)

    Writes a non-nullable value into a stream.

    Declaration
    protected override async Task WriteValueAsync(IDictionary<TKey, TValue> value, Stream stream, GraphBinaryWriter writer)
    Parameters
    Type Name Description
    IDictionary<TKey, TValue> value
    Stream stream

    The stream to write to.

    GraphBinaryWriter writer

    A GraphBinaryWriter.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the asynchronous write operation.

    Overrides
    Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<IDictionary<TKey, TValue>>.WriteValueAsync(IDictionary<TKey, TValue>, Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryWriter)

    Implements

    ITypeSerializer
    In This Article
    Back to top Copyright © 2018 The Apache Software Foundation