-
-
Save dimitris-papadimitriou-chr/07c3d7e20a68237c6cdcac2cedfb5fdd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| string GetShapeDescription1(Shape shape) => | |
| shape switch | |
| { | |
| Rectangle { Height: var h, Width: var w } => $"Found {h }x {w} rectangle", | |
| Circle { Radius: var r } => $"found a circle with radius {r}", | |
| }; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment