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


ImmutableSortedDictionaryCodec<TKey,TValue> Класс

Определение

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

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

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

TKey

Тип ключа.

TValue

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

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

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

ImmutableSortedDictionaryCodec<TKey,TValue>(IValueSerializer<ImmutableSortedDictionarySurrogate<TKey,TValue>>)

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

Методы

ConvertFromSurrogate(ImmutableSortedDictionarySurrogate<TKey,TValue>)

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

ConvertFromSurrogate(TSurrogate)

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

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

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

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