Extensions.ToAdvisableHashSet<T> Method |
Converts an IEnumerable<T> into an AdvisableHashSet<T>.
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.15.0 (6.5.15.0)
C#
public static AdvisableHashSet<T> ToAdvisableHashSet<T>( this IEnumerable<T> collection )
Parameters
- collection
- Type: System.Collections.Generic.IEnumerable<T>
An IEnumerable<T>, or null.
Type Parameters
- T
- Type of collection items.
Return Value
Type: AdvisableHashSet<T>A new AdvisableHashSet<T> containing all elements of collection, or null if collection is empty.