using System;
public class Program
{
public static void Main()
Point[] points = new [] { new Point() { X = 2, Y = 5 } };
int x = points?[0].X ?? 0;
Console.WriteLine(x);
}
public class Point
public int X { get; set; }
public int Y { get; set; }