Edit

Share via


ImmutableListCodec<T> Class

Definition

Serializer for ImmutableList<T>.

[Orleans.RegisterSerializer]
public sealed class ImmutableListCodec<T> : Orleans.Serialization.Codecs.GeneralizedReferenceTypeSurrogateCodec<System.Collections.Immutable.ImmutableList<T>,Orleans.Serialization.Codecs.ImmutableListSurrogate<T>>
[<Orleans.RegisterSerializer>]
type ImmutableListCodec<'T> = class
    inherit GeneralizedReferenceTypeSurrogateCodec<ImmutableList<'T>, ImmutableListSurrogate<'T>>
Public NotInheritable Class ImmutableListCodec(Of T)
Inherits GeneralizedReferenceTypeSurrogateCodec(Of ImmutableList(Of T), ImmutableListSurrogate(Of T))

Type Parameters

T

The element type.

Inheritance
Attributes

Constructors

ImmutableListCodec<T>(IValueSerializer<ImmutableListSurrogate<T>>)

Initializes a new instance of the ImmutableListCodec<T> class.

Methods

ConvertFromSurrogate(ImmutableListSurrogate<T>) System.Object.ConvertFromSurrogate(Orleans.Serialization.Codecs.ImmutableListSurrogate{`0}@)
ConvertFromSurrogate(TSurrogate)

Converts a value from the surrogate type to the field type.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ImmutableList<T>, ImmutableListSurrogate<T>) System.Object.ConvertToSurrogate(System.Collections.Immutable.ImmutableList{`0},Orleans.Serialization.Codecs.ImmutableListSurrogate{`0}@)
ConvertToSurrogate(TField, TSurrogate)

Converts a value to the surrogate type.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ReadValue<TInput>(Reader<TInput>, Field)

Reads a value.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

Writes a field.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)

Applies to