using static System.Console;
public static void Main()
var program = new Program();
var x = program?.X ?? 100;
catch (Exception e) when (e.Message.StartsWith("Attempted"))
private int X { get; } = 10;
private int Y { get; set; } = 99;
private Program(int x) => this.X = x;
public override string ToString() => $"({this.X}, {this.Y})";