G
Guest
The C# compiler gives warnings about unused variables. I thin it needs a
warning about an unassigned reference. For instance, this compiles without
any warnings/errors, but of course blows up when run:
SqlConnection cnn = null;
try
{
new SqlConnection(myConnectionString);
cnn.Open()
Comments?
Rich Sienkiewicz
Nice Systems, Inc.
warning about an unassigned reference. For instance, this compiles without
any warnings/errors, but of course blows up when run:
SqlConnection cnn = null;
try
{
new SqlConnection(myConnectionString);
cnn.Open()
Comments?
Rich Sienkiewicz
Nice Systems, Inc.