KeyValuePairCodec<TKey,TValue> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
的 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>
- 属性
- 实现
-
IFieldCodec IFieldCodec<KeyValuePair<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>) |
写入字段。 |