0
MSDN hereの例では、usingディレクティブを静的型で使用する方法を説明しています。static型の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私はあなたが何を得ているかを見ていると思う。 –