MapContainer Members

Contains a map. A MapContainer wraps a map value, to provide a mutable version of Map. The Map type itself is immutable. See Map for more details on the Map type.

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

Public Constructors

  Name Description
  MapContainer Overloaded.  

Top

Public Properties

  Name Description
public property Count Return the number of elements in the MapContainer.
public property IsReadOnly Always returns false.
public property Item Get or set (override) key mapping.
public property Keys Return an enumeration of the keys in the MapContainer.
public property Values Return an enumeration of the values in the MapContainer.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Add Overloaded.  
public method Clear Not supported.
public method Contains Tests for membership of a particular KeyValuePair pair.
public method ContainsKey Determine whether a given key is defined in the MapContainer.
public method CopyTo Copies the contents of the MapContainer into the specified array.
public method Equals  (Inherited from Object)
public method GetEnumerator Get an enumeration of the KeyValuePair pairs in the MapContainer.
public method GetHashCode  (Inherited from Object)
public method GetType  (Inherited from Object)
public method Override Overloaded.  
public method Remove Overloaded.  
public method ToArray Deliver a new array containing the KeyValuePair pairs in the MapContainer.
public method ToMap Deliver a map value with the content of this map container.
public method ToString Overridden. Convert MapContainer to a readable representation.
public method Transform Perform a transformation of the content of the container. This is used for example together with LINQ query expressions, as in sc.Transform(m => from x in m where x.Key > 0 select x).
public method TryGetValue TryGet the key's value from the MapContainer.

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

MapContainer Generic Class
Microsoft.Modeling Namespace
Map Generic Class