//You can do this
int
x = 1;
if(x
> 0)
{
DataSet ds =
new DataSet();
}
else
{
DataSet ds =
new DataSet();
}
//But, you can't do this!
DataSet ds =
new DataSet();
int
x = 1;
if(x
> 0)
{
DataSet ds =
new DataSet();
//CS0136
}
//...or this!
int
x = 1;
if(x
> 0)
{
DataSet ds =
new DataSet();
}
Console.WriteLine(ds.Tables.Count); //CS0246
Read on... 0
Comments...