NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error CS0162

Unreachable code detected

The compiler detected code that will never be executed.

The following sample generates CS0162:

public class a {
   public static void Main() {
      lab1:
      goto lab1; {
         int i = 9;   // CS0162, never reached
         i++;
      }
   }
}