Redigera

Dela via


ImmutableArrayCodec<T> Class

Definition

Serializer for ImmutableArray<T>.

[Orleans.RegisterSerializer]
public sealed class ImmutableArrayCodec<T> : Orleans.Serialization.Codecs.GeneralizedValueTypeSurrogateCodec<System.Collections.Immutable.ImmutableArray<T>,Orleans.Serialization.Codecs.ImmutableArraySurrogate<T>>
[<Orleans.RegisterSerializer>]
type ImmutableArrayCodec<'T> = class
    inherit GeneralizedValueTypeSurrogateCodec<ImmutableArray<'T>, ImmutableArraySurrogate<'T>>
Public NotInheritable Class ImmutableArrayCodec(Of T)
Inherits GeneralizedValueTypeSurrogateCodec(Of ImmutableArray(Of T), ImmutableArraySurrogate(Of T))

Type Parameters

T

The element type.

Inheritance
Attributes

Constructors

ImmutableArrayCodec<T>(IValueSerializer<ImmutableArraySurrogate<T>>)

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

Methods

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

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

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

Converts a value to the surrogate type.

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

Reads a value.

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

Writes a field.

(Inherited from GeneralizedValueTypeSurrogateCodec<TField,TSurrogate>)

Applies to