Can anyone here confirm for sure that reader.Close() and Dispose() will
get called using the following routine:
using(SqlDataRe ader reader = GetOpenReaderFu nction())
{
while(reader.Re ad()) doSomething(rea der);
}
I have seen examples here and there with mixed assumptions.
get called using the following routine:
using(SqlDataRe ader reader = GetOpenReaderFu nction())
{
while(reader.Re ad()) doSomething(rea der);
}
I have seen examples here and there with mixed assumptions.
Comment