我有一些代码长这样:
using (DBDataContext dc = new DBDataContext(ConnectionString))
{
Main main = new Main
{
ClientTime = clientTime
};
dc.Mains.InsertOnSubmit(main);
dc.SubmitChanges();
return main.ID;
}
如果我从 "using" 语句块内部返回,那么 "using" 语句块是否仍然会被清理?