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 CS0152

The label 'label' already occurs in this switch statement

A label was repeated in a switch statement.

The following sample generates CS0152:

namespace x
{
   public class a
   {
      public static void Main()
      {
         int i = 0;
         switch (i)
         {
            case 1:
               i++;
               return;
               
            case 1:   // CS0152, two case 1 statements
               i++;
               return;
         }
      }
   }
}