📅  最后修改于: 2022-03-11 14:49:04.030000             🧑  作者: Mango
// Always, always, always put disposable objects inside of using statements:
using (Connection c = ...)
{
using (DataReader dr = ...)
{
//Work with dr in here.
}
}
//Now the connection and reader have been closed and disposed.