Skip to content

ConvertDataTableToQueueItemList.cs

Avrigeanu Laurian edited this page Apr 14, 2023 · 1 revision

ConvertDataTableToQueueItemList(dataTable: DataTable): List<QueueItem>

Parameters

  • dataTable: A DataTable object containing data to be converted to QueueItem list.

Returns

  • List<QueueItem>: A list of QueueItem objects created from DataRow items in dataTable.

Remarks

This method takes a DataTable object as input and converts its rows into a list of QueueItem objects. It iterates through each DataRow in the DataTable and creates a new QueueItem object using the data in that row. The QueueItem object is then added to a list of QueueItem objects.

Note that this method uses the JsonConvert class from the Newtonsoft.Json namespace to deserialize the Output and SpecificContent columns from the DataTable into Dictionary<string, object> objects.

Clone this wiki locally