DataHelperGetValuesFrequency Method (DataTable, String) |
Gets frequency of values in specified data table's column.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax public static Dictionary<Object, int> GetValuesFrequency(
DataTable dt,
string columnName
)
Parameters
- dt
- Type: System.DataDataTable
Data table. - columnName
- Type: SystemString
Name of column for which the frequency is determined.
Return Value
Type:
DictionaryObject,
Int32Pairs of (value, occurrences count) in
dt's column named
columnName.
See Also