Class Map<TKey, TValue>
- Namespace
- RisingV.Shared.Collections
- Assembly
- RisingV.Shared.dll
Represents a generic map that extends Dictionary with specific key and value types.
public class Map<TKey, TValue> : Dictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IDeserializationCallback, ISerializable, IMap<TKey, TValue>, IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IMap, IDictionary, ICollection, IEnumerable where TKey : notnull
Type Parameters
TKey
TValue
- Inheritance
-
Dictionary<TKey, TValue>Map<TKey, TValue>
- Implements
-
IReadOnlyDictionary<TKey, TValue>IReadOnlyCollection<KeyValuePair<TKey, TValue>>IMap<TKey, TValue>IDictionary<TKey, TValue>ICollection<KeyValuePair<TKey, TValue>>IEnumerable<KeyValuePair<TKey, TValue>>
- Derived
- Inherited Members
- Extension Methods
Constructors
Map()
public Map()
Map(IDictionary<TKey, TValue>)
public Map(IDictionary<TKey, TValue> dictionary)
Parameters
dictionary
IDictionary<TKey, TValue>
Map(IDictionary<TKey, TValue>, IEqualityComparer<TKey>)
public Map(IDictionary<TKey, TValue> dictionary, IEqualityComparer<TKey> comparer)
Parameters
dictionary
IDictionary<TKey, TValue>comparer
IEqualityComparer<TKey>
Map(IEnumerable<KeyValuePair<TKey, TValue>>)
public Map(IEnumerable<KeyValuePair<TKey, TValue>> collection)
Parameters
collection
IEnumerable<KeyValuePair<TKey, TValue>>
Map(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<TKey>)
public Map(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey> comparer)
Parameters
collection
IEnumerable<KeyValuePair<TKey, TValue>>comparer
IEqualityComparer<TKey>
Map(IEqualityComparer<TKey>?)
public Map(IEqualityComparer<TKey>? comparer)
Parameters
comparer
IEqualityComparer<TKey>
Map(int)
public Map(int capacity)
Parameters
capacity
int
Map(int, IEqualityComparer<TKey>)
public Map(int capacity, IEqualityComparer<TKey> comparer)
Parameters
capacity
intcomparer
IEqualityComparer<TKey>
Map(SerializationInfo, StreamingContext)
[Obsolete("Obsolete")]
protected Map(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfocontext
StreamingContext
Properties
Keys
Gets an ICollection<T> containing the keys of the IDictionary<TKey, TValue>.
public ICollection<TKey> Keys { get; }
Property Value
- ICollection<TKey>
An ICollection<T> containing the keys of the object that implements IDictionary<TKey, TValue>.
Values
Gets an ICollection<T> containing the values in the IDictionary<TKey, TValue>.
public ICollection<TValue> Values { get; }
Property Value
- ICollection<TValue>
An ICollection<T> containing the values in the object that implements IDictionary<TKey, TValue>.
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.