static void Main(string[] args) { ShapeDescriptor shapeDescriptor1 = new ShapeDescriptor(new Point(1, 2), new Point(3, 4), new Point(5, 6)); ShapeDescriptor shapeDescriptor2 = new ShapeDescriptor(new Point(5, 12)); Console.WriteLine(shapeDescriptor1.ShapeType); Console.WriteLine(shapeDescriptor2.ShapeType); Console.ReadKey(); }
static void Main(string[] args) { int a = 1, b = 2, c = 3, d = 4; var test = new ShapeDescriptor(a, b); //var test1 = new ShapeDescriptor(a, b, c); //var test2 = new ShapeDescriptor(a, b, c, d); Console.ReadKey(); }