How to convert DataSet to DataTable In C#?

How to convert DataSet to DataTable In C#

 

DataSet ds=new DataSet();
ds.Tables.Add(dt);

 

DataSet ds;                      
DataTable dt= ds.Tables[0];

 

DataTable dt = dataSet.Tables["Emp"];

 

DataTable dt = dataSet.Tables[0];

 

 

2021-10-03