Google.Protobuf.Collections.MapField<TKey, TValue>
public sealed class MapField<TKey, TValue> : IDeepCloneable<MapField<TKey, TValue>>, IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IEquatable<MapField<TKey, TValue>>, IDictionary, ICollection, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>
Representation of a map field in a Protocol Buffer message.
A codec for a specific map field. This contains all the information required to encode and
decode the nested messages.
Gets the number of elements contained in the map.
Gets a value indicating whether the map is read-only.
Gets or sets the value associated with the specified key.
Gets a collection containing the keys in the map.
Gets a collection containing the values in the map.
public MapField()
Adds the specified key/value pair to the map.
Adds the specified entries to the map. The keys and values are not automatically cloned.
Removes all items from the map.
Creates a deep clone of this object.
Determines whether the specified key is present in the map.
Compares this map with another for equality.
Returns an enumerator that iterates through the collection.
Adds the specified entries to the map, replacing any existing entries with the same keys.
The keys and values are not automatically cloned.
Removes the entry identified by the given key from the map.
Gets the value associated with the specified key.