Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cpascal
· 6y ago · 0 comments
> In C# 9.0, you can omit the type in a new expression when the created object's type is already known.
private List<WeatherObservation> _observations = new();
This is something I've long wondered why I couldn't do and I'm glad I'll be able to in C# 9.
Comments
[–]
tandr
6y ago
I wish other languages would adopt this too...