Introducing C# 9: Improved target typing

added by DotNetKicks
6/22/2020 4:18:35 PM

381 Views

C# 9 brings a better target typing: "In C# 9.0 some expressions that weren't previously target typed become able to be guided by their context." - Microsoft - https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/#improved-target-typing Let's see that with some examples in this article. C# 9, now, allows to omit the type of the object you are instantiating.


0 comments