类型初始化 / 结构

using System;

var size = new Size(1010);
var point = new Point(55);
var rect = new Rectangle(size, point);

Console.WriteLine(rect);

struct Size {
    public int width, height; 

    public Size (int width, int height) {
        this.width = width;
        this.height = height;
    }
}

//C# 9 feature
record Point(int top, int left);

record Rectangle(Size size, Point point);