Changes in new versions / C# 11.0

class Point {
    public required int X { getset; }
    public required int Y { getset; }
}

var p = new Point(); //<-Error


The required modifier forces fields and properties to be initialized within the constructor or initializer.