1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
using System; namespace GoloRoden.GuideToCSharp { /// <summary> /// Represents a point. /// </summary> public class Point { /// <summary> /// Gets or sets the X coordinate. /// </summary> /// <value>The X coordinate.</value> public double X { get; set; } /// <summary> /// Gets or sets the Y coordinate. /// </summary> /// <value>The Y coordinate.</value> public double Y { get; set; } /// <summary> /// Initializes a new instance of the Point type. /// </summary> /// <param name="x">The X coordinate.</param> /// <param name="y">The Y coordinate.</param> public Point(double x, double y) { this.X = x; this.Y = y; } } }