Search Results for

    Show / Hide Table of Contents

    Class TypeSerializerRegistry

    Provides GraphBinary serializers for different types.

    Inheritance
    System.Object
    TypeSerializerRegistry
    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
    Assembly: cs.temp.dll.dll
    Syntax
    public class TypeSerializerRegistry

    Fields

    Instance

    Provides a default TypeSerializerRegistry instance.

    Declaration
    public static readonly TypeSerializerRegistry Instance
    Field Value
    Type Description
    TypeSerializerRegistry

    Methods

    Build()

    Builds a TypeSerializerRegistry.

    Declaration
    public static TypeSerializerRegistry.Builder Build()
    Returns
    Type Description
    TypeSerializerRegistry.Builder

    GetSerializerFor(DataType)

    Gets a serializer for the given GraphBinary type.

    Declaration
    public ITypeSerializer GetSerializerFor(DataType type)
    Parameters
    Type Name Description
    DataType type

    The GraphBinary type that should be (de)serialized.

    Returns
    Type Description
    ITypeSerializer

    A serializer for the provided GraphBinary type.

    GetSerializerFor(Type)

    Gets a serializer for the given type of the value to be serialized.

    Declaration
    public ITypeSerializer GetSerializerFor(Type valueType)
    Parameters
    Type Name Description
    System.Type valueType

    Type of the value to be serialized.

    Returns
    Type Description
    ITypeSerializer

    A serializer for the provided type.

    Exceptions
    Type Condition
    System.InvalidOperationException

    Thrown when no serializer can be found for the type.

    GetSerializerForCustomType(String)

    Gets a serializer for the given custom type name.

    Declaration
    public CustomTypeSerializer GetSerializerForCustomType(string typeName)
    Parameters
    Type Name Description
    System.String typeName

    The custom type name.

    Returns
    Type Description
    CustomTypeSerializer

    A serializer for the provided custom type name.

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