PSUtility.ToSet<TBase> Method (IEnumerable<TBase>, IEqualityComparer<TBase>)

Reserved for internal use.

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToSet(Of TBase) ( _
    enumerable As IEnumerable(Of TBase), _
    comparer As IEqualityComparer(Of TBase) _
) As HashSet(Of TBase)
'Usage
Dim enumerable As IEnumerable(Of TBase)
Dim comparer As IEqualityComparer(Of TBase)
Dim returnValue As HashSet(Of TBase)

returnValue = enumerable.ToSet(comparer)
public static HashSet<TBase> ToSet<TBase>(
    this IEnumerable<TBase> enumerable,
    IEqualityComparer<TBase> comparer
)

Type Parameters

  • TBase

Parameters

Return Value

Type: System.Collections.Generic.HashSet<TBase>
Returns HashSet<T>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<TBase>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=office.14) or https://msdn.microsoft.com/en-us/library/bb383977(v=office.14).

See Also

Reference

PSUtility Class

PSUtility Members

ToSet Overload

Microsoft.Office.Project.Server.Library Namespace