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

Extensions Class

Adds extension methods to the System.Collections.Generic.IEnumerable<> and IDictionary<TKey,TValue> 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 System.Collections.Generic.IEnumerable<> 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 System.Collections.Generic.IEnumerable<> 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 System.Collections.Generic.IEnumerable<> into an AdvisableHashSet<T>.