Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Error CS0140

The label 'label' is a duplicate

A label with the same name appeared twice.

The following sample generates CS0140:

// CS0140.cs
namespace x
   public class a
      public static void Main()
         l1: int i = 0;
         l1: int j = 0;   // CS0140, comment this line to resolve
         goto l1;
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.