Created
June 10, 2020 09:09
-
-
Save markusdybeck/f7773519cec70fe7bc1a31e14fcc0bd0 to your computer and use it in GitHub Desktop.
Simple record example
This file contains 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
public record Point(int x, int y) {}; | |
var point = new Point(1, 2); | |
point.x(); // 1 | |
point.y(); // 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment