Class MapField<TKey, TValue>.Codec

public sealed class Codec : object

A codec for a specific map field. This contains all the information required to encode and decode the nested messages.

Inheritance

Object > MapField<TKey, TValue>.Codec

Namespace

Google.Protobuf.Collections

Assembly

Google.Protobuf.dll

Constructors

Codec(FieldCodec<TKey>, FieldCodec<TValue>, UInt32)

public Codec(FieldCodec<TKey> keyCodec, FieldCodec<TValue> valueCodec, uint mapTag)

Creates a new entry codec based on a separate key codec and value codec, and the tag to use for each map entry.

Parameters
TypeNameDescription
FieldCodec<TKey>keyCodec

The key codec.

FieldCodec<TValue>valueCodec

The value codec.

UInt32mapTag

The map tag to use to introduce each map entry.