Class ShapeShiftConverter<T, TEncoder, TDecoder>
- Namespace
- ShapeShift
- Assembly
- ShapeShift.dll
public abstract class ShapeShiftConverter<T, TEncoder, TDecoder> : ShapeShiftConverter<TEncoder, TDecoder> where TEncoder : IEncoder, allows ref struct where TDecoder : IDecoder, allows ref struct
Type Parameters
TTEncoderTDecoder
- Inheritance
-
ShapeShiftConverter<TEncoder, TDecoder>ShapeShiftConverter<T, TEncoder, TDecoder>
- Derived
- Inherited Members
Methods
Read(ref TDecoder, SerializationContext<TEncoder, TDecoder>)
public abstract T? Read(ref TDecoder decoder, SerializationContext<TEncoder, TDecoder> context)
Parameters
decoderTDecodercontextSerializationContext<TEncoder, TDecoder>
Returns
- T
ReadObject(ref TDecoder, SerializationContext<TEncoder, TDecoder>)
public override sealed object? ReadObject(ref TDecoder reader, SerializationContext<TEncoder, TDecoder> context)
Parameters
readerTDecodercontextSerializationContext<TEncoder, TDecoder>
Returns
Write(ref TEncoder, in T?, SerializationContext<TEncoder, TDecoder>)
public abstract void Write(ref TEncoder encoder, in T? value, SerializationContext<TEncoder, TDecoder> context)
Parameters
encoderTEncodervalueTcontextSerializationContext<TEncoder, TDecoder>
WriteObject(ref TEncoder, object?, SerializationContext<TEncoder, TDecoder>)
public override sealed void WriteObject(ref TEncoder writer, object? value, SerializationContext<TEncoder, TDecoder> context)
Parameters
writerTEncodervalueobjectcontextSerializationContext<TEncoder, TDecoder>