Click or drag to resize
ControlsHelperGetControlsHashtableControlType Method (ListControlType, FuncControlType, String)
Translates the controls ArrayList to the Hashtable indexed by the controls ID [Control.ID.ToLowerCSafe()] -> [Control]

Namespace: CMS.ExtendedControls
Assembly: CMS.ExtendedControls (in CMS.ExtendedControls.dll) Version: 8.2.23
Syntax
C#
public static SafeDictionary<string, ControlType> GetControlsHashtable<ControlType>(
	List<ControlType> controls,
	Func<ControlType, string> idFunc
)
where ControlType : Control

Parameters

controls
Type: System.Collections.GenericListControlType
Controls to translate
idFunc
Type: SystemFuncControlType, String
Function that transforms the control to its ID

Type Parameters

ControlType

Return Value

Type: SafeDictionaryString, ControlType
See Also