C
C#2y ago
trikkss

❔ new() not available in C# 7.3

my error is : error CS8370: Feature 'target-typed object creation' is not available in C# 7.3. Please use language version 9.0 or greater. I dont know how can I do that in C# 7.3
4 Replies
jcotton42
jcotton422y ago
>Please use 9.0 or greater
TheRanger
TheRanger2y ago
private readonly List<ItemContainers.ButtonContainer> _buttons = new List<ItemContainers.ButtonContainer>();
private readonly List<ItemContainers.ButtonContainer> _buttons = new List<ItemContainers.ButtonContainer>();
if for some reason you can't update to 9.0 or greater, just initialize objects this way
trikkss
trikkssOP2y ago
thank you it works yes i cant update for this project
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server