How to Convert the value in DataTable into a string array in c#?

How to Convert the value in DataTable into a string array in c#

 

var stringArray = dataTable.Rows[0].ItemArray.Select(x => x.ToString()).ToArray();

 

List<string[]> stringArray = new List<string[]>();
foreach( var row in datatable.rows )
{
 stringArray.Add( new string[]{row.id,row.Address,row.Age.ToString()} );
}

2021-10-03