共用方式為


DictionaryCodec<TKey,TValue> 類別

定義

Dictionary<TKey,TValue> 序列化程式。

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

類型參數

TKey

索引鍵類型。

TValue

值型別。

繼承
DictionaryCodec<TKey,TValue>
屬性
實作

建構函式

DictionaryCodec<TKey,TValue>(IFieldCodec<TKey>, IFieldCodec<TValue>, IFieldCodec<IEqualityComparer<TKey>>)

初始化 DictionaryCodec<TKey,TValue> 類別的新執行個體。

方法

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

讀取值。

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

寫入欄位。

適用於