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

适用于