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.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 11.0.0
Syntax 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,
TControlSee Also