[]
        
(Showing Draft Content)

C1.WPF.Document.C1SortedList-2

C1SortedList<TKey, TValue> Class

The sorted list class.

Inheritance
C1SortedList<TKey, TValue>
Implements
IEnumerable<TValue>
Namespace: C1.WPF.Document
Assembly: C1.WPF.Document.dll
Syntax
public class C1SortedList<TKey, TValue> : IEnumerable<TValue>, IEnumerable where TKey : IComparable<TKey>
Type Parameters
Name Description
TKey

The type of key.

TValue

The type of value.

Constructors

Name Description
C1SortedList()

Properties

Name Description
Count

Gets the number of elements contained in the keys collection.

Methods

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.