Partager via


ReadOnlyDictionaryCodec<TKey,TValue> Classe

Définition

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

Paramètres de type

TKey
TValue
Héritage
ReadOnlyDictionaryCodec<TKey,TValue>
Attributs

Constructeurs

ReadOnlyDictionaryCodec<TKey,TValue>(IValueSerializer<ReadOnlyDictionarySurrogate<TKey,TValue>>)

Méthodes

ConvertFromSurrogate(ReadOnlyDictionarySurrogate<TKey,TValue>)
ConvertFromSurrogate(TSurrogate)

Convertit une valeur du type de substitution en type de champ.

(Hérité de GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ReadOnlyDictionary<TKey,TValue>, ReadOnlyDictionarySurrogate<TKey,TValue>)
ConvertToSurrogate(TField, TSurrogate)

Convertit une valeur en type de substitution.

(Hérité de GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ReadValue<TInput>(Reader<TInput>, Field)

Lit une valeur.

(Hérité de GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

Écrit un champ.

(Hérité de GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)

S’applique à