Class MapField<TKey, TValue>.Codec (3.15.8)

Stay organized with collections Save and categorize content based on your preferences.
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
NameDescription
keyCodecFieldCodec<TKey>

The key codec.

valueCodecFieldCodec<TValue>

The value codec.

mapTagUInt32

The map tag to use to introduce each map entry.