Click or drag to resize
DataExtensionsToHashSetT Method
Converts the list of objects to a hash set of distinct values

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax
C#
public static HashSet<T> ToHashSet<T>(
	this IEnumerable<T> objects,
	IEqualityComparer<T> comparer = null
)

Parameters

objects
Type: System.Collections.GenericIEnumerableT
List of objects to convert
comparer (Optional)
Type: System.Collections.GenericIEqualityComparerT
Comparer

Type Parameters

T

Return Value

Type: HashSetT

Usage Note

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).
See Also