Click or drag to resize

MultiMapK, V Class

Custom implementation of a multi map because C# does not offer one by default.
Inheritance Hierarchy
SystemObject
  Karamba.UtilitiesMultiMapK, V

Namespace:  Karamba.Utilities
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 2.2.0.4 (2.2.0.4)
Syntax
[SerializableAttribute]
public class MultiMap<K, V> : ISerializable

Type Parameters

K
type of key.
V
type of values.

The MultiMapK, V type exposes the following members.

Constructors
  NameDescription
Public methodMultiMapK, V
Initializes a new instance of the MultiMapK, V class. the constructor.
Public methodMultiMapK, V(MultiMapK, V)
Initializes a new instance of the MultiMapK, V class. Copy constructor for mult-imaps.
Protected methodMultiMapK, V(SerializationInfo, StreamingContext)
Initializes a new instance of the MultiMapK, V class. Deserialize BuilderElementStraightLine.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of keys in the MultiMap.
Public propertydictionary
Gets the equivalent IReadOnlyDictionary.
Public propertyItem
return all values corresponding to a given key.
Public propertyKeys
Gets the keys of the multi-map.
Top
Methods
  NameDescription
Public methodAdd(K)
add an key to the map but no values which results in an empty list.
Public methodAdd(K, ListV)
add a list of identifiers to the map.
Public methodAdd(K, V)
add an element to the map.
Public methodAddUnique
add an element to the map if not already present.
Public methodContainsKey
Checks whether the MultiMap contains a specific key.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetObjectData
Serialize BuilderElementStraightLine.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodKeysWithZeroItems
Get the list of keys with entries that do not contain items.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Tries to find a key in the MultiMap.
Top
See Also