C#
C#

help

Root Question Message

TRIKKSS
TRIKKSS1/30/2023
❔ 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
jcotton42
jcotton421/30/2023
>Please use 9.0 or greater
TheRanger
TheRanger1/30/2023
private readonly List<ItemContainers.ButtonContainer> _buttons = new List<ItemContainers.ButtonContainer>();
TheRanger
TheRanger1/30/2023
if for some reason you can't update to 9.0 or greater, just initialize objects this way
TRIKKSS
TRIKKSS1/30/2023
thank you it works
TRIKKSS
TRIKKSS1/30/2023
yes i cant update for this project
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy