Class ListDictionary<TKey, TValue>.ValueList
Represents a dictionary synchronized list of values associated with a key in a ListDictionary<TKey, TValue>.
Implements
Inherited Members
Namespace: Singulink.Collections
Assembly: Singulink.Collections.dll
Syntax
public sealed class ListDictionary<TKey, TValue>.ValueList : ListDictionary<TKey, TValue>.ReadOnlyValueList, IReadOnlyList<TValue>, IReadOnlyCollection<TValue>, IEquatable<ListDictionary<TKey, TValue>.ReadOnlyValueList>, IList<TValue>, ICollection<TValue>, IEnumerable<TValue>, IEnumerable, IReadOnlyCollectionProvider<TValue>
Properties
Name | Description |
---|---|
Capacity | Gets or sets the total number of items the internal data structure can hold without resizing. |
this[int] | Gets or sets the item at the specified index. |
Methods
Name | Description |
---|---|
Add(TValue) | Adds an item to the end of this list. |
AddRange(IEnumerable<TValue>) | Adds the items of the specified collection to the end of this list. |
AsReadOnly() | Returns a dictionary synchronized read-only wrapper around this value list. |
Clear() | Clears all the items in this list and removes the key from the dictionary. |
EnsureCapacity(int) | Ensures that the capacity of this list is at least the specified capacity. |
Insert(int, TValue) | Inserts an item into the list at the specified index. |
InsertRange(int, IEnumerable<TValue>) | Inserts the items of a collection into the list at the specified index. |
Remove(TValue) | Removes the first occurrence of the specified item from the list. |
RemoveAll(Predicate<TValue>) | Removes all the items that match the conditions defined by the specified predicate. |
RemoveAt(int) | Removes the item at the specified index of the list. |
RemoveRange(int, int) | Removes a range of items from the list. |
Reverse() | Reverses the order of the items in the entire list. |
Reverse(int, int) | Reverses the order of the items in the specified range. |
SetRange(IEnumerable<TValue>) | Clears the items in this list and adds the items from the specified collection. |
Sort() | Sorts the items in the entire list using the default comparer. |
Sort(IComparer<TValue>?) | Sorts the items in the entire list using the specified comparer. |
Sort(Comparison<TValue>) | Sorts the items in the entire list using the specified comparison. |
Sort(int, int, IComparer<TValue>?) | Sorts the items in a range of items in System.Collections.Generic.List`1 using the specified comparer. |
TrimExcess() | Sets the capacity to the actual number of items in the list, if that number is less than a threshold value. |
Explicit Interface Implementations
Name | Description |
---|---|
IReadOnlyCollectionProvider<TValue>.GetReadOnlyCollection() | Returns a read-only collection wrapper for the given collection. |
ICollection<TValue>.IsReadOnly | Gets a value indicating whether this list is read-only. Always returns false. |