Click or drag to resize
DataExtensionsToDictionaryById Method (IEnumerableBaseInfo)
Converts the list of objects to a dictionary indexed by object ID

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static SafeDictionary<int, BaseInfo> ToDictionaryById(
	this IEnumerable<BaseInfo> objects
)

Parameters

objects
Type: System.Collections.GenericIEnumerableBaseInfo
List of objects to convert

Return Value

Type: SafeDictionaryInt32, BaseInfo

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableBaseInfo. 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