DataExtensions ToHashSet T, TSource  Method Kentico 8.1 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.1.5347.20411)

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