PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsExtensions
Open sandboxFocus

Extensions Class

Adds extension methods to the IEnumerable<T> and System.Collections.Generic.IDictionary<, > interfaces.

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

Methods

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

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

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

Converts an System.Collections.Generic.IDictionary<, > 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>.