Partager via


ConcurrentDictionaryCodec<TKey,TValue> Classe

Définition

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

Paramètres de type

TKey

Type de la clé t.

TValue

Type de la valeur t.

Héritage
ConcurrentDictionaryCodec<TKey,TValue>
Attributs

Constructeurs

ConcurrentDictionaryCodec<TKey,TValue>(IValueSerializer<ConcurrentDictionarySurrogate<TKey,TValue>>)

Initialise une nouvelle instance de la classe ConcurrentDictionaryCodec<TKey,TValue>.

Méthodes

ConvertFromSurrogate(ConcurrentDictionarySurrogate<TKey,TValue>)

Sérialiseur pour ConcurrentDictionary<TKey,TValue>.

ConvertFromSurrogate(TSurrogate)

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

(Hérité de GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ConcurrentDictionary<TKey,TValue>, ConcurrentDictionarySurrogate<TKey,TValue>)

Sérialiseur pour ConcurrentDictionary<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 à