私は C# の初心者で、チュートリアルからサンプル C# プログラムを実行しようとしています。
以下のコードを実行しようとすると、次のエラーが発生します。
エラー 1 タイプまたは名前空間名 'Point' が名前空間 'System.Drawing' に存在しません (アセンブリ参照がありませんか?) C:\Users\Documents\Visual Studio 2012\Projects\HelloWorld\HelloWorld\Class1.cs 20 28 ハローワールド
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace HelloWorld
{
class Hello
{
static void Main()
{
Nullable<bool> b = false;
if (b.HasValue) Console.WriteLine("b is {0}", b.Value);
else Console.WriteLine("b is not set");
System.Drawing.Point p = new System.Drawing.Point(20, 30);
Console.WriteLine(b);
Console.WriteLine("Hello World");
Console.WriteLine("Press any key to exit");
Console.ReadKey();
}
}
}