public static void Main()
var box = new Box(20, 50);
var (width, height, (innerWidth, innerHeight)) = box;
Console.WriteLine($"內盒寬高 = {innerWidth} x {innerHeight}");
public int Width { get; }
public int Height { get; }
public Box(int width, int height)
public void Deconstruct(out int width, out int height)
public void Deconstruct(out int width, out int height, out Box box)
box = new Box(width / 2, height / 2);