Why do the following lines of code not create a compiler warning?
void Main()
{
throw new Exception();
throw new Exception();
}
As I see it, the compiler should inform you that the second throw exception cannot be reached.
Why do the following lines of code not create a compiler warning?
void Main()
{
throw new Exception();
throw new Exception();
}
As I see it, the compiler should inform you that the second throw exception cannot be reached.