AutoWeakIndexerTKey, TValue Class |
Namespace: TomsToolbox.Essentials
public sealed class AutoWeakIndexer<TKey, TValue> : IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable where TValue : class
The AutoWeakIndexerTKey, TValue type exposes the following members.
Name | Description | |
---|---|---|
AutoWeakIndexerTKey, TValue |
Initializes a new instance of the AutoWeakIndexerTKey, TValue class.
|
Name | Description | |
---|---|---|
Comparer |
Gets the IEqualityComparerT that is used to determine equality of keys for the dictionary.
| |
Item |
Gets the value associated with the specified key.
| |
Keys |
Gets a collection containing the keys in the AutoWeakIndexerTKey, TValue.
| |
Values |
Gets a collection containing the values in the AutoWeakIndexerTKey, TValue.
|
Name | Description | |
---|---|---|
Clear |
Removes all keys and values from the AutoWeakIndexerTKey, TValue.
| |
ContainsKey |
Determines whether the AutoWeakIndexerTKey, TValue contains the specified key.
| |
GetEnumerator |
Returns an enumerator that iterates through the items of the AutoWeakIndexerTKey, TValue.
| |
TryGetValue |
Gets the value associated with the specified key.
|
Name | Description | |
---|---|---|
CombineFlagsKeyValuePairTKey, TValue |
Combines the flags into a single Enum.
(Defined by EnumExtensions.) | |
ContainsAnyKeyValuePairTKey, TValue(KeyValuePairTKey, TValue) | Overloaded.
Shortcut to test if any of the given items are contained in the specified object.
(Defined by CollectionExtensions.) | |
ContainsAnyKeyValuePairTKey, TValue(IEqualityComparerKeyValuePairTKey, TValue, KeyValuePairTKey, TValue) | Overloaded.
Shortcut to test if any of the given items are contained in the specified object.
(Defined by CollectionExtensions.) | |
FindIndexKeyValuePairTKey, TValue |
Searches for an element that matches the conditions defined by the specified predicate,
and returns the zero-based index of the first occurrence within the entire IEnumerableT.
(Defined by CollectionExtensions.) | |
ForEachKeyValuePairTKey, TValue(ActionKeyValuePairTKey, TValue) | Overloaded.
Performs the specified action on each element of the collection.
(Defined by CollectionExtensions.) | |
ForEachKeyValuePairTKey, TValue(ActionKeyValuePairTKey, TValue, Int32) | Overloaded.
Performs the specified action on each element of the collection, providing also the index of the item.
(Defined by CollectionExtensions.) | |
IndexOfKeyValuePairTKey, TValue(KeyValuePairTKey, TValue) | Overloaded.
Searches for the specified object and returns the zero-based index of the first occurrence within all items.
(Defined by CollectionExtensions.) | |
IndexOfKeyValuePairTKey, TValue(KeyValuePairTKey, TValue, IEqualityComparerKeyValuePairTKey, TValue) | Overloaded.
Searches for the specified object and returns the zero-based index of the first occurrence within all items.
(Defined by CollectionExtensions.) | |
ObservableCastTTarget |
Returns an observable collection of objects of type TTarget that mirrors the source collection.
(Defined by ObservableExtensions.) | |
SafeCastT |
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions.) |