With a constructor

Type initialization / Structures

using System;

var size = new Size(10, 10);
var point = new Point(5, 5);
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);