Share via


컴파일러 오류 CS0723

업데이트: 2007년 11월

오류 메시지

'type' 정적 형식의 변수를 선언할 수 없습니다.
Cannot declare variable of static type 'type'

정적 형식에서는 인스턴스를 만들 수 없습니다.

다음 샘플에서는 CS0723 오류가 발생하는 경우를 보여 줍니다.

// CS0723.cs
public static class SC
{
}


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