Click or drag to resize
DataHelperGetValuesFrequency Method (DataTable, String)
Gets frequency of values in specified data table's column.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
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, Int32
Pairs of (value, occurrences count) in dt's column named columnName.
See Also