Compilerfehler CS0516
Aktualisiert: November 2007
Fehlermeldung
Der "Konstruktor"-Konstruktor kann sich nicht selbst aufrufen.
Constructor 'constructor' can not call itself
Ein Programm kann Konstruktoren nicht rekursiv aufrufen.
Im folgenden Beispiel wird CS0516 generiert:
// CS0516.cs
namespace x
{
public class clx
{
public clx() : this() // CS0516, delete "this()"
{
}
public static void Main()
{
}
}
}