컴파일러 오류 CS0516
업데이트: 2007년 11월
오류 메시지
'constructor' 생성자는 자신을 호출할 수 없습니다.
Constructor 'constructor' can not call itself
프로그램에서 생성자를 재귀적으로 호출할 수 없습니다.
다음 샘플에서는 CS0516 오류가 발생하는 경우를 보여 줍니다.
// CS0516.cs
namespace x
{
public class clx
{
public clx() : this() // CS0516, delete "this()"
{
}
public static void Main()
{
}
}
}