Compartilhar via


ReadOnlyCollectionCodec<T> Classe

Definição

Serializador para ReadOnlyCollection<T>.

[Orleans.RegisterSerializer]
public sealed class ReadOnlyCollectionCodec<T> : Orleans.Serialization.Codecs.GeneralizedReferenceTypeSurrogateCodec<System.Collections.ObjectModel.ReadOnlyCollection<T>,Orleans.Serialization.Codecs.ReadOnlyCollectionSurrogate<T>>
[<Orleans.RegisterSerializer>]
type ReadOnlyCollectionCodec<'T> = class
    inherit GeneralizedReferenceTypeSurrogateCodec<ReadOnlyCollection<'T>, ReadOnlyCollectionSurrogate<'T>>
Public NotInheritable Class ReadOnlyCollectionCodec(Of T)
Inherits GeneralizedReferenceTypeSurrogateCodec(Of ReadOnlyCollection(Of T), ReadOnlyCollectionSurrogate(Of T))

Parâmetros de tipo

T

O tipo de elemento.

Herança
Atributos

Construtores

ReadOnlyCollectionCodec<T>(IValueSerializer<ReadOnlyCollectionSurrogate<T>>)

Inicializa uma nova instância da classe ReadOnlyCollectionCodec<T>.

Métodos

ConvertFromSurrogate(ReadOnlyCollectionSurrogate<T>)

Serializador para ReadOnlyCollection<T>.

ConvertFromSurrogate(TSurrogate)

Converte um valor do tipo alternativo para o tipo de campo.

(Herdado de GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ReadOnlyCollection<T>, ReadOnlyCollectionSurrogate<T>)

Serializador para ReadOnlyCollection<T>.

ConvertToSurrogate(TField, TSurrogate)

Converte um valor no tipo alternativo.

(Herdado de GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ReadValue<TInput>(Reader<TInput>, Field)

Lê um valor.

(Herdado de GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

Grava um campo.

(Herdado de GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)

Aplica-se a