← Back
Nick Chapsas May 9, 2025 23s

Target-typed new in C# is awesome

Summary

The transcript discusses a new feature in C# 9 called target typed new, which simplifies object creation by allowing developers to omit type declarations on the right side of an assignment. This enhancement applies to constructors, collections, and generics, reducing code verbosity and improving readability. The key practical takeaway is that developers can now write more concise object instantiation code, with the compiler intelligently inferring the type from the left-hand side of the expression.

View original episode ↗