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
Methods
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. |