Class CollectionDictionaryExtensions
Provides extension methods for collection dictionaries.
Namespace: Singulink.Collections
Assembly: Singulink.Collections.dll
Syntax
public static class CollectionDictionaryExtensions
Methods
| Name | Description |
|---|---|
| AsCollectionDictionary<TKey, TValue>(IListDictionary<TKey, TValue>) | Returns an ICollectionDictionary<TKey, TValue> wrapper for a list dictionary. |
| AsCollectionDictionary<TKey, TValue>(ISetDictionary<TKey, TValue>) | Returns an ICollectionDictionary<TKey, TValue> wrapper for a set dictionary. |
| AsLookup<TKey, TValue>(IReadOnlyCollectionDictionary<TKey, TValue>) | Returns a live ILookup<TKey, TElement> view of the collection dictionary. The view reflects changes made to the underlying dictionary. |
| AsLookup<TKey, TValue>(IReadOnlyListDictionary<TKey, TValue>) | Returns a live ILookup<TKey, TElement> view of the collection dictionary. The view reflects changes made to the underlying dictionary. |
| AsLookup<TKey, TValue>(IReadOnlySetDictionary<TKey, TValue>) | Returns a live ILookup<TKey, TElement> view of the collection dictionary. The view reflects changes made to the underlying dictionary. |
| AsReadOnlyCollectionDictionary<TKey, TValue>(IReadOnlyListDictionary<TKey, TValue>) | Returns an IReadOnlyCollectionDictionary<TKey, TValue> wrapper for a read-only list dictionary. |
| AsReadOnlyCollectionDictionary<TKey, TValue>(IReadOnlySetDictionary<TKey, TValue>) | Returns an IReadOnlyCollectionDictionary<TKey, TValue> wrapper for a read-only set dictionary. |
| AsReadOnly<TKey, TValue>(ICollectionDictionary<TKey, TValue>) | Returns a true read-only IReadOnlyCollectionDictionary<TKey, TValue> wrapper for a collection dictionary. The returned wrapper cannot be downcast back to a mutable collection dictionary. |
| AsReadOnly<TKey, TValue>(IListDictionary<TKey, TValue>) | Returns a true read-only IReadOnlyListDictionary<TKey, TValue> wrapper for a list dictionary. The returned wrapper cannot be downcast back to a mutable list dictionary. |
| AsReadOnly<TKey, TValue>(ISetDictionary<TKey, TValue>) | Returns a true read-only IReadOnlySetDictionary<TKey, TValue> wrapper for a set dictionary. The returned wrapper cannot be downcast back to a mutable set dictionary. |
| ToLookup<TKey, TValue>(IReadOnlyCollectionDictionary<TKey, TValue>, IEqualityComparer<TKey>?) | Creates a snapshot ILookup<TKey, TElement> by copying the current contents of the collection dictionary. Subsequent changes to the dictionary are not reflected in the returned lookup. |
| ToLookup<TKey, TValue>(IReadOnlyListDictionary<TKey, TValue>, IEqualityComparer<TKey>?) | Creates a snapshot ILookup<TKey, TElement> by copying the current contents of the collection dictionary. Subsequent changes to the dictionary are not reflected in the returned lookup. |
| ToLookup<TKey, TValue>(IReadOnlySetDictionary<TKey, TValue>, IEqualityComparer<TKey>?) | Creates a snapshot ILookup<TKey, TElement> by copying the current contents of the collection dictionary. Subsequent changes to the dictionary are not reflected in the returned lookup. |