Map Members

Contains a map, which is an unordered collection mapping keys to elements. Map values are immutable. See MapContainer for a mutable version of Map.

The following tables list the members exposed by the Map type.

Public Constructors

  Name Description
  Map Overloaded. Creates a map value from a IEnumerable of KeyValuePair types.

Top

Public Fields

  Name Description
public field Rep Supports the infrastructure. Do not use.

Top

Public Properties

  Name Description
public property Count Return the number of elements in the map.
public property IsReadOnly Always returns true.
public property Item Get the value associated with a key.
public property Keys Get the enumeration of keys in the map.
public property Values Get the enumeration of values in the map.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Add Overloaded.  
public method Clear Not supported.
public method Contains Test for membership of a key with the given value.
public method ContainsKey Determine whether a key is defined in the map.
public method CopyTo Copy contents of map into array.
public method Equals  Overridden. Determines whether the specified compound value is equal to the current compound value. (Inherited from Object)
public method GetEnumerator Get enumeration of key-value pairs in the map.
public method GetHashCode  Overridden. Serves as a consistent hash function for a compound value type. (Inherited from Object)
public method GetType  (Inherited from Object)
public method GroupBy Overloaded.  
public method GroupJoin Perform a grouped join of two maps based on matching keys extracted from the elements.
public method Join Perform an inner join of two maps based on matching key extracted from the elements.
public method OrderBy Orders a map according to key in ascending order.
public method OrderByDescending Orders a map according to key in descending order.
public method Override Overloaded.  
public method Remove Overloaded.  
public method Select Perform a projection over a map.
public method SelectMany Perform a one to many element projection over a map.
public method ToArray Deliver a new array containing elements of map.
public method ToString Overridden. Convert map value to a readable representation.
public method TryGetValue TryGet the key's value from the map.
public method Where Filter a map based on predicate.

Top

Protected Methods

(see also Extension Methods)

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Top

Extension Methods

  Name Description
public extension method Exists  Indicates whether a predicate is true for at least one element of a collection. (Defined by LogicalOperations.)
public extension method Forall  Indicates whether a predicate is true for all elements of a collection. (Defined by LogicalOperations.)

Top

See Also

Reference

Map Generic Class
Microsoft.Modeling Namespace
MapContainer