Stored properties in C#
Forums:
class Point {
public int X { get; set; }
public int Y { get; set; }
}
var point = new Point();
//X and Y is 0 (before assigning)
point.X = 3;
point.Y = 7;
- Log in to post comments
class Point {
public int X { get; set; }
public int Y { get; set; }
}
var point = new Point();
//X and Y is 0 (before assigning)
point.X = 3;
point.Y = 7;