Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The label 'label' is a duplicate
A label with the same name appeared twice. For more information, see goto.
The following sample generates CS0140:
// CS0140.cs
namespace MyNamespace
{
public class MyClass
{
public static void Main()
{
label1: int i = 0;
label1: int j = 0; // CS0140, comment this line to resolve
goto label1;
}
}
}
.NET feedback
.NET is an open source project. Select a link to provide feedback: