0
MSDN here의 예제에서는 정적 형식과 함께 using 지시문을 사용하는 방법을 설명합니다.정적 형식의 지시문 사용 방법
그러나 다음 코드로 예제를 모방하려고하면 오류가 발생합니다.
내가 뭘 잘못하고 있니?
namespace ConsoleApplication1
{
// intellisense syntax errors show up in this line
using static System.Console;
class Program
{
static void Main(string[] args)
{
// do something
}
}
}
Visual Studio/컴파일러의 버전은 무엇입니까? –
VS2013, .NET 3.5 –
@ DanielA.White 나는 당신이 무엇을보고 있는지 생각합니다. –