Changes in new versions / C# 10.0
"with" expressions for structures
Initializing a structure and its fields
Interpolation of constant strings
Nested property patterns
Global using directive
namespace for the entire file
Sealed ToString method
namespace
Samples
.
Versions
.
Version10
;
struct
Point
{
public
int
X, Y;
}
This
change allows you to
set
a
namespace
for
the entire file without having to indent.