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

public sealed class MapField<TKey, TValue>.Codec

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

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
Name Description
keyCodec FieldCodec

The key codec.

valueCodec FieldCodec

The value codec.

mapTag uint

The map tag to use to introduce each map entry.