Class BigDecimalSerializer
A serializer that serializes System.Decimal values as BigDecimal in GraphBinary.
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 BigDecimalSerializer : SimpleTypeSerializer<decimal>, ITypeSerializer
Constructors
BigDecimalSerializer()
Initializes a new instance of the BigDecimalSerializer class.
Declaration
public BigDecimalSerializer()
Methods
ReadValueAsync(Stream, GraphBinaryReader)
Declaration
protected override async Task<decimal> ReadValueAsync(Stream stream, GraphBinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | |
GraphBinaryReader | reader |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Decimal> |
Overrides
Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<System.Decimal>.ReadValueAsync(Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryReader)
WriteValueAsync(Decimal, Stream, GraphBinaryWriter)
Declaration
protected override async Task WriteValueAsync(decimal value, Stream stream, GraphBinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | value | |
Stream | stream | |
GraphBinaryWriter | writer |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<System.Decimal>.WriteValueAsync(System.Decimal, Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryWriter)