This post is one of my continuing C# update posts designed to keep abreast of Microsoft's improvements to managed code in the C# framework. I have been teaching C# improvements to user groups, technology fairs, and corporations since c#7 in 2018. These presentations and teaching sessions are repeated in my blog,
My Observations into C# 7 (2018)
My Observations into C# 8 (2019)
My Observations into C# 9 (2021)
My Observations into C# 10(2021)
This post is under development and should be completed later in December.
Visual C# Version 10 List of Improvements
(taken from Microsoft)
- Record structs
- Improvements of structure types
- Interpolated string handler
- Global using directives
- File-scoped namespace declaration
- Extended property patterns
- Lambda expression improvements
- Constant interpolated strings
- Record types can seal ToString
- Assignment and declaration in same deconstruction
- Improved definite assignment
- Allow AsyncMethodBuilder attribute on methods
- CallerArgumentExpression attribute diagnostics
- Enhanced #line pragma
- Generic attributes