Pochmurnik
Pochmurnik

Reputation: 828

Where to store information about point in console application?

I need to create a struct storing four points. I wanted to create a Point variable, but it looks I can't use System.Drawing in console application. What should I use?

Upvotes: 0

Views: 123

Answers (1)

BRAHIM Kamel
BRAHIM Kamel

Reputation: 13765

you should add a reference to System.Drawing.dll and then add using System.Drawing;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;  

namespace ConsoleApplication5
{
    class Program
    {
        static void Main(string[] args)
        {
          Point point =  new Point();
        }

    }
}

enter image description here

Upvotes: 2

Related Questions