共用方式為


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

寫入欄位。

適用於