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

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 13.0.131
Syntax
C#
public static SafeDictionary<string, TControl> GetControlsHashtable<TControl>(
	List<TControl> controls,
	Func<TControl, string> idFunc
)
where TControl : Control

Parameters

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

Type Parameters

TControl

Return Value

Type: SafeDictionaryString, TControl
See Also