ImmutableDictionaryCodec<TKey,TValue> 类

定义

ImmutableDictionary<TKey,TValue>序列化程序。

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

类型参数

TKey

键类型。

TValue

值类型。

继承
ImmutableDictionaryCodec<TKey,TValue>
属性

构造函数

ImmutableDictionaryCodec<TKey,TValue>(IValueSerializer<ImmutableDictionarySurrogate<TKey,TValue>>)

初始化 ImmutableDictionaryCodec<TKey,TValue> 类的新实例。

方法

ConvertFromSurrogate(ImmutableDictionarySurrogate<TKey,TValue>)

ImmutableDictionary<TKey,TValue>序列化程序。

ConvertFromSurrogate(TSurrogate)

将值从代理项类型转换为字段类型。

(继承自 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ImmutableDictionary<TKey,TValue>, ImmutableDictionarySurrogate<TKey,TValue>)

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

适用于