Compartilhar via


ImmutableDictionaryCodec<TKey,TValue> Classe

Definição

[Orleans.RegisterSerializer]
public sealed class ImmutableDictionaryCodec<TKey,TValue> : Orleans.Serialization.Codecs.GeneralizedReferenceTypeSurrogateCodec<System.Collections.Immutable.ImmutableDictionary<TKey,TValue>,Orleans.Serialization.Codecs.ImmutableDictionarySurrogate<TKey,TValue>>
[<Orleans.RegisterSerializer>]
type ImmutableDictionaryCodec<'Key, 'Value> = class
    inherit GeneralizedReferenceTypeSurrogateCodec<ImmutableDictionary<'Key, 'Value>, ImmutableDictionarySurrogate<'Key, 'Value>>
Public NotInheritable Class ImmutableDictionaryCodec(Of TKey, TValue)
Inherits GeneralizedReferenceTypeSurrogateCodec(Of ImmutableDictionary(Of TKey, TValue), ImmutableDictionarySurrogate(Of TKey, TValue))

Parâmetros de tipo

TKey

O tipo principal.

TValue

O tipo de valor.

Herança
ImmutableDictionaryCodec<TKey,TValue>
Atributos

Construtores

ImmutableDictionaryCodec<TKey,TValue>(IValueSerializer<ImmutableDictionarySurrogate<TKey,TValue>>)

Inicializa uma nova instância da classe ImmutableDictionaryCodec<TKey,TValue>.

Métodos

ConvertFromSurrogate(ImmutableDictionarySurrogate<TKey,TValue>)

Serializador para ImmutableDictionary<TKey,TValue>.

ConvertFromSurrogate(TSurrogate)

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

(Herdado de GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ImmutableDictionary<TKey,TValue>, ImmutableDictionarySurrogate<TKey,TValue>)

Serializador para ImmutableDictionary<TKey,TValue>.

ConvertToSurrogate(TField, TSurrogate)

Converte um valor para o 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