I
INeedADip
Can anyone here confirm for sure that reader.Close() and Dispose() will
get called using the following routine:
using(SqlDataReader reader = GetOpenReaderFunction())
{
while(reader.Read()) doSomething(reader);
}
I have seen examples here and there with mixed assumptions.
get called using the following routine:
using(SqlDataReader reader = GetOpenReaderFunction())
{
while(reader.Read()) doSomething(reader);
}
I have seen examples here and there with mixed assumptions.