Edytuj

Udostępnij za pośrednictwem


GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate> Class

Definition

Surrogate serializer for TField and all sub-types.

public abstract class GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate> : Orleans.Serialization.Codecs.IDerivedTypeCodec, Orleans.Serialization.Codecs.IFieldCodec<TField> where TField : class where TSurrogate : struct
type GeneralizedReferenceTypeSurrogateCodec<'Field, 'Surrogate (requires 'Field : null and 'Surrogate : struct)> = class
    interface IFieldCodec<'Field (requires 'Field : null)>
    interface IFieldCodec
    interface IDerivedTypeCodec
Public MustInherit Class GeneralizedReferenceTypeSurrogateCodec(Of TField, TSurrogate)
Implements IDerivedTypeCodec, 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
GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>
Derived
Implements

Constructors

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

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

Methods

ConvertFromSurrogate(TSurrogate)

Converts a value from the surrogate type 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