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


SortedDictionaryCodec<TKey,TValue> Класс

Определение

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

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

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

TKey

Тип ключа.

TValue

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

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

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

SortedDictionaryCodec<TKey,TValue>(IValueSerializer<SortedDictionarySurrogate<TKey,TValue>>)

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

Методы

ConvertFromSurrogate(SortedDictionarySurrogate<TKey,TValue>)

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

ConvertFromSurrogate(TSurrogate)

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

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

Сериализатор для SortedDictionary<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>)

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