Open sandboxFocus

Class Extensions

Adds extension methods to the IEnumerable<T> and IDictionary<TKey, TValue> interfaces.

Inheritance
Extensions
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common.dll
Syntax
public static class Extensions

Methods

Name Description
ToAdvisableCollection<T>(IEnumerable<T>)

Converts an IEnumerable<T> into an AdvisableCollection<T>.

ToAdvisableDictionary<TKey, TValue>(IDictionary<TKey, TValue>)

Converts an IDictionary<TKey, TValue> into an AdvisableDictionary<TKey, TValue>.

ToAdvisableDictionary<TItem, TKey, TValue>(IEnumerable<TItem>, Func<TItem, TKey>, Func<TItem, TValue>)

Converts an IEnumerable<T> into a AdvisableDictionary<TKey, TValue> given a method returning the item key and a method returning the item value.

ToAdvisableHashSet<T>(IEnumerable<T>)

Converts an IEnumerable<T> into an AdvisableHashSet<T>.