public static void Main()
string GetShapeDescription1(Shape shape) =>
Rectangle { Height: var h, Width: var w } => $"Found {h }x {w} rectangle",
Circle { Radius: var r } => $"found a circle with radius {r}",
Shape shape = new Rectangle
var description = GetShapeDescription1(shape);
Console.WriteLine(description);
public int Width { get; set; }
public int Height { get; set; }
public int Radius { get; set; }