NamedValueDictionary<T>

class NamedValueDictionary<T> : System.Object, System.Collections.Generic.IDictionary<String, T>, System.Collections.Generic.ICollection<KeyValuePair`2>, System.Collections.Generic.IEnumerable<KeyValuePair`2>, System.Collections.IEnumerable
Type Parameters:
 
  • T
readonly System.Collections.Generic.ICollection<String> Keys

Gets all keys contained in the dictionary.

readonly System.Collections.Generic.ICollection<T> Values

Gets all values contained in the dictionary.

Microsoft.Xna.Framework.Content.Pipeline.T Item
readonly int Count

Gets the number of items in the dictionary.

public void Add(string key, Microsoft.Xna.Framework.Content.Pipeline.T value)
Parameters:
  • key (string) –
  • value (Microsoft.Xna.Framework.Content.Pipeline.T) –
public bool ContainsKey(string key)

Determines whether the specified key is present in the dictionary.

Parameters:
  • key (string) – Identity of a key.
Returns:
public bool Remove(string key)

Removes the specified key and value from the dictionary.

Parameters:
  • key (string) – Identity of the key to be removed.
Returns:

true if the value is present; false otherwise.

public bool TryGetValue(string key, ref Microsoft.Xna.Framework.Content.Pipeline.T value)
Parameters:
  • key (string) –
  • (ref) value (Microsoft.Xna.Framework.Content.Pipeline.T) –
System.Type get_DefaultSerializerType()
public void Clear()

Removes all keys and values from the dictionary.

public System.Collections.Generic.IEnumerator<KeyValuePair`2> GetEnumerator()

Gets an enumerator that iterates through items in a dictionary.

Returns:Enumerator for iterating through the dictionary.