컴파일러 오류 CS1057
업데이트: 2007년 11월
오류 메시지
'member': 정적 클래스는 protected 멤버를 포함할 수 없습니다.
'member': static classes cannot contain protected members"
이 오류는 정적 클래스에서 protected 멤버를 선언하는 경우에 발생합니다.
예제
다음 예제에서는 CS1057 오류가 발생하는 경우를 보여 줍니다.
// CS1057.cs
using System;
static class Class1
{
protected static int x; // CS1057
public static void Main()
{
}
}