This compiles and runs:
class Values
{
static void Main()
{
int myInt ;
System.Console.WriteLine("Initialized: myInt: {0}", myInt);
myInt = 5;
System.Console.WriteLine("Initialized: myInt: {0}", myInt);
}
}
Whereas I believe it should fail to compile with "Use of unassigned local
variable".
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|