Monday, September 13, 2010

Unreachable Code detected

class Program
{
static void Main()
{
if (false)
Console.WriteLine("HI");//Warning.. Never executes this line
Console.ReadKey();
}
}

Compiler Warning
a.cs(6,1): warning CS0162: Unreachable code detected

No comments:

Post a Comment