Sdílet prostřednictvím


Compilerwarnung (Stufe 2) CS0164

Aktualisiert: November 2007

Fehlermeldung

Auf diese Bezeichnung wurde nicht verwiesen.
This label has not been referenced

Eine Bezeichnung wurde deklariert, jedoch nie verwendet.

Im folgenden Beispiel wird CS0164 generiert:

// CS0164.cs
// compile with: /W:2
public class a
{
   public int i = 0;

   public static void Main()
   {
      int i = 0;   // CS0164
      l1: i++;
      // the following lines resolve this error
      // if(i < 10)
      //    goto l1;
   }
}