[]
The sorted list class.
public class C1SortedList<TKey, TValue> : IEnumerable<TValue>, IEnumerable where TKey : IComparable<TKey>
Name | Description |
---|---|
TKey | The type of key. |
TValue | The type of value. |
Name | Description |
---|---|
C1SortedList() |
Name | Description |
---|---|
Count | Gets the number of elements contained in the keys collection. |
Name | Description |
---|---|
Add(TKey, TValue) | Adds value to the list, returns index of the added value, throws exception if value with specified key already exists. |
Clear() | Removes all elements from the keys and values collections. |
TryGetValue(TKey, out TValue) | Gets the value by specified key. |