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
using
System
;
const
string
str =
"Hello"
;
Console
.
WriteLine
($
"str
is
'
{str}
'"
);