Class LowerCaseDictionary<T>
An IDictionary{string, T} containing lowercase keys only.
Inheritance
Namespace: Telerik.Windows.Documents.FormatProviders.Html
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class LowerCaseDictionary<T> : Object, IDictionary<string, T>, ICollection<KeyValuePair<string, T>>, IEnumerable<KeyValuePair<string, T>>, IEnumerable
Type Parameters
T
The type of the values inside the dictionary. |
Constructors
LowerCaseDictionary()
Initializes a new instance of the LowerCaseDictionary<T> class.
Declaration
public LowerCaseDictionary()
Properties
Count
Gets the number of elements contained in the System.Collections.Generic.ICollection<>.
Declaration
public int Count { get; }
Property Value
System.Int32
|
Item[String]
Gets or sets the T
with the specified key.
Declaration
public T this[string key] { get; set; }
Parameters
System.String
key
The key. |
Property Value
T
The |
Keys
Gets an System.Collections.Generic.ICollection<> containing the keys of the System.Collections.Generic.IDictionary<, >.
Declaration
public ICollection<string> Keys { get; }
Property Value
System.Collections.Generic.ICollection<System.String>
|
Values
Gets an System.Collections.Generic.ICollection<> containing the values in the System.Collections.Generic.IDictionary<, >.
Declaration
public ICollection<T> Values { get; }
Property Value
System.Collections.Generic.ICollection<T>
|
Methods
Add(String, T)
Adds an element with the provided key and value to the System.Collections.Generic.IDictionary<, >.
Declaration
public void Add(string key, T value)
Parameters
System.String
key
The object to use as the key of the element to add. |
T
value
The object to use as the value of the element to add. |
Clear()
Removes all items from the System.Collections.Generic.ICollection<>.
Declaration
public void Clear()
ContainsKey(String)
Determines whether the System.Collections.Generic.IDictionary<, > contains an element with the specified key.
Declaration
public bool ContainsKey(string key)
Parameters
System.String
key
The key to locate in the System.Collections.Generic.IDictionary<, >. |
Returns
System.Boolean
true if the System.Collections.Generic.IDictionary<, > contains an element with the key; otherwise, false. |
CopyTo(KeyValuePair<String, T>[], Int32)
Copies the elements of the System.Collections.Generic.ICollection<> to an System.Array, starting at a particular System.Array index.
Declaration
public void CopyTo(KeyValuePair<string, T>[] array, int arrayIndex)
Parameters
System.Collections.Generic.KeyValuePair<System.String, T>[]
array
The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.ICollection<>. The System.Array must have zero-based indexing. |
System.Int32
arrayIndex
The zero-based index in |
Remove(String)
Removes the element with the specified key from the System.Collections.Generic.IDictionary<, >.
Declaration
public bool Remove(string key)
Parameters
System.String
key
The key of the element to remove. |
Returns
System.Boolean
true if the element is successfully removed; otherwise, false. This method also returns false if |
TryGetValue(String, out T)
Gets the value associated with the specified key.
Declaration
public bool TryGetValue(string key, out T value)
Parameters
System.String
key
The key whose value to get. |
T
value
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the |
Returns
System.Boolean
true if the object that implements System.Collections.Generic.IDictionary<, > contains an element with the specified key; otherwise, false. |