컴파일러 오류 CS0673
업데이트: 2007년 11월
오류 메시지
System.Void는 C#에서 사용할 수 없습니다. void 형식 개체를 가져오려면 typeof(void)를 사용하십시오.
System.Void cannot be used from C# -- use typeof(void) to get the void type object.
System.Void는 C#에서 사용할 수 없습니다.
다음 샘플에서는 CS0673 오류가 발생하는 경우를 보여 줍니다.
// CS0673.cs
class MyClass
{
public static void Main()
{
System.Type t = typeof(System.Void); // CS0673
// try the following line instead
// System.Type t = typeof(void);
}
}