In many situations, there is only one possible type allowed in a given place. And yet C# still requires you to explicitly list the type. Now that the Target-typed new expression proposal has been adopted into C# 9, such boilerplate code will no longer be necessary.

#language design #.net #c# 9 #development #news #programming

C# 9: Type Inference for the New Keyword
3.30 GEEK