An interface for objects that store associations between keys and values.

Namespace: yWorks.yFiles.Util
Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.4.0.0

Syntax

C#
public interface IMap
Visual Basic
Public Interface IMap

Remarks

An interface for objects that store associations between keys and values.

Maps are also known as dictionaries or associative arrays and map each element in the KeySet()()()() collection to exactly one element in the Values()()()() collection (which may be nullNothingnullptra null reference (Nothing in Visual Basic)). Each key-value pair is represented by an instance of IMapEntry . The set of all key-value pairs can be accessed through the EntrySet()()()() collection.

This interface does not impose restrictions on the order of the entries and on the type of either keys or values. Concrete implementations may thus allow or disallow nullNothingnullptra null reference (Nothing in Visual Basic) keys or impose a specific order of the entries.

Note that the behavior is undefined if you use mutable objects as keys and change them in a way that affects equality comparisons with other keys as long as the object is used as key in the map.

See Also