Поделиться через


ConcurrentDictionaryCodec<TKey,TValue> Класс

Определение

Сериализатор для ConcurrentDictionary<TKey,TValue>.

[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))

Параметры типа

TKey

Тип ключа t.

TValue

Тип значения t.

Наследование
ConcurrentDictionaryCodec<TKey,TValue>
Атрибуты

Конструкторы

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

Инициализирует новый экземпляр класса ConcurrentDictionaryCodec<TKey,TValue>.

Методы

ConvertFromSurrogate(ConcurrentDictionarySurrogate<TKey,TValue>)

Сериализатор для ConcurrentDictionary<TKey,TValue>.

ConvertFromSurrogate(TSurrogate)

Преобразует значение из суррогатного типа в тип поля.

(Унаследовано от GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ConcurrentDictionary<TKey,TValue>, ConcurrentDictionarySurrogate<TKey,TValue>)

Сериализатор для ConcurrentDictionary<TKey,TValue>.

ConvertToSurrogate(TField, TSurrogate)

Преобразует значение в суррогатный тип.

(Унаследовано от GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ReadValue<TInput>(Reader<TInput>, Field)

Считывает значение.

(Унаследовано от GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

Записывает поле.

(Унаследовано от GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)

Применяется к