Edytuj

Udostępnij za pośrednictwem


ReferenceTypeSurrogateCodec<TField,TSurrogate> Class

Definition

Surrogate serializer for TField.

public abstract class ReferenceTypeSurrogateCodec<TField,TSurrogate> : Orleans.Serialization.Codecs.IFieldCodec<TField> where TSurrogate : struct
type ReferenceTypeSurrogateCodec<'Field, 'Surrogate (requires 'Surrogate : struct)> = class
    interface IFieldCodec<'Field>
    interface IFieldCodec
Public MustInherit Class ReferenceTypeSurrogateCodec(Of TField, TSurrogate)
Implements IFieldCodec(Of TField)

Type Parameters

TField

The type which the implementation of this class supports.

TSurrogate

The surrogate type serialized in place of TField.

Inheritance
ReferenceTypeSurrogateCodec<TField,TSurrogate>
Implements

Constructors

ReferenceTypeSurrogateCodec<TField,TSurrogate>(IValueSerializer<TSurrogate>)

Initializes a new instance of the ReferenceTypeSurrogateCodec<TField,TSurrogate> class.

Methods

ConvertFromSurrogate(TSurrogate)

Converts a surrogate value to the field type.

ConvertToSurrogate(TField, TSurrogate)

Converts a value to the surrogate type.

ReadValue<TInput>(Reader<TInput>, Field)

Reads a value.

WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

Writes a field.

Applies to