Class CustomTypeSerializer
The interface to implement for serializers of custom types.
Inheritance
System.Object
CustomTypeSerializer
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 abstract class CustomTypeSerializer : ITypeSerializer
Properties
DataType
Declaration
public DataType DataType { get; }
Property Value
Type | Description |
---|---|
DataType |
TypeName
Gets the custom type name.
Declaration
public abstract string TypeName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ReadAsync(Stream, GraphBinaryReader, CancellationToken)
Declaration
public abstract Task<object> ReadAsync(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.Object> |
ReadValueAsync(Stream, GraphBinaryReader, Boolean, CancellationToken)
Declaration
public abstract Task<object> ReadValueAsync(Stream stream, GraphBinaryReader reader, bool nullable, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | |
GraphBinaryReader | reader | |
System.Boolean | nullable | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> |
WriteAsync(Object, Stream, GraphBinaryWriter, CancellationToken)
Declaration
public abstract Task WriteAsync(object value, Stream stream, GraphBinaryWriter writer, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | |
Stream | stream | |
GraphBinaryWriter | writer | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
WriteValueAsync(Object, Stream, GraphBinaryWriter, Boolean, CancellationToken)
Declaration
public abstract Task WriteValueAsync(object value, Stream stream, GraphBinaryWriter writer, bool nullable, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | |
Stream | stream | |
GraphBinaryWriter | writer | |
System.Boolean | nullable | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |