KeyValuePairCodec<TKey,TValue> 类

定义

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

[Orleans.RegisterSerializer]
public sealed class KeyValuePairCodec<TKey,TValue> : Orleans.Serialization.Codecs.IFieldCodec<System.Collections.Generic.KeyValuePair<TKey,TValue>>
[<Orleans.RegisterSerializer>]
type KeyValuePairCodec<'Key, 'Value> = class
    interface IFieldCodec<KeyValuePair<'Key, 'Value>>
    interface IFieldCodec
Public NotInheritable Class KeyValuePairCodec(Of TKey, TValue)
Implements IFieldCodec(Of KeyValuePair(Of TKey, TValue))

类型参数

TKey

键类型。

TValue

值类型。

继承
KeyValuePairCodec<TKey,TValue>
属性
实现

构造函数

KeyValuePairCodec<TKey,TValue>(IFieldCodec<TKey>, IFieldCodec<TValue>)

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

方法

ReadValue<TInput>(Reader<TInput>, Field)

读取值。

WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, KeyValuePair<TKey,TValue>)

写入字段。

适用于