DataExtensions ToHashSet T, TSource  Method Kentico 8.0 API Reference
Converts the list of objects to a dictionary indexed by object ID

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

objects
Type: OnlineSystem.Collections.Generic IEnumerable TSource 
List of objects to convert
transform
Type: OnlineSystem Func TSource, T 
Function to transform the object to hash set item. When returns null, the object is not added to the result

Return Value

Type: OnlineHashSet T 
See Also