Closed aloisdg closed 2 years ago
That is just a syntactic sugar:
public Point(int x, int y, int z) { X = x; Y = y; Z = z; }
can be written as:
public Point(int x, int y, int z) => (X, Y, Z) = (x, y, z);
The compilation result are the same.
source:
A whole thread on /r/csharp about this PR
That is just a syntactic sugar:
can be written as:
The compilation result are the same.
source: