Edytuj

Udostępnij za pośrednictwem


DictionaryCodec<TKey,TValue> Class

Definition

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

Type Parameters

TKey

The key type.

TValue

The value type.

Inheritance
DictionaryCodec<TKey,TValue>
Attributes
Implements

Constructors

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

Initializes a new instance of the DictionaryCodec<TKey,TValue> class.

Methods

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

Reads a value.

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

Writes a field.

Applies to