你能解释一下这里发生了什么吗?
using(DataSet ds = GetDataSet()) // will this get disposed? if yes (when?)
{
using(DataTable dt = ds.Tables[0]) /* in this line is ds available for dt? i found some issue with this kind of statement. dt gets null after this line */
{
// i know that ds is available here.
//some code
}
}