Compilerfehler CS0723

Aktualisiert: November 2007

Fehlermeldung

Die Variable des statischen Typs "Typ" kann nicht deklariert werden.
Cannot declare variable of static type 'type'

Instanzen statischer Typen können nicht erstellt werden.

Im folgenden Beispiel wird CS0723 generiert

// CS0723.cs
public static class SC
{
}


public class CMain
{
   public static void Main()
   {
      SC sc = null;  // CS0723
   }
}