EnumerableExtensionsToHashsetT Method
Namespace: Karamba.UtilitiesAssembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
public static HashSet<T> ToHashset<T>(
this IEnumerable<T> source
)
<ExtensionAttribute>
Public Shared Function ToHashset(Of T) (
source As IEnumerable(Of T)
) As HashSet(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static HashSet<T>^ ToHashset(
IEnumerable<T>^ source
)
[<ExtensionAttribute>]
static member ToHashset :
source : IEnumerable<'T> -> HashSet<'T>
- source IEnumerableT
- The input sequence.
- T
- The type of the input sequence.
HashSetTA that contains unique elements from the input sequence.In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).