Hello,
so I know the basics of C# but one thing I never understood or learned was how data structures are being created/declared
So there are like 3+ ways of declaring an array, I typically use:
String[] example = new string[3];
(First question: What is new for? Why is it being used here?)
And today I learned stacks but they are declared differently:
Stack<int> stack = new Stack<int>();
So why is that? Why isnt it
Stack[int] stack = new Stack; And what are the brackets for