-
Notifications
You must be signed in to change notification settings - Fork 0
ConvertDataTableToQueueItemList.cs
Avrigeanu Laurian edited this page Apr 14, 2023
·
1 revision
-
dataTable
: ADataTable
object containing data to be converted toQueueItem
list.
-
List<QueueItem>
: A list ofQueueItem
objects created fromDataRow
items indataTable
.
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.