3 ms·
Testing this, it doesn't throw in C#, it just doesn't compile because you can't declare a variable to be a List without declaring the type with it. If you speci
by eterm 9y ago
Testing this, it doesn't throw in C#, it just doesn't compile because you can't declare a variable to be a List without declaring the type with it. If you specify myList as List<String> then it still doesn't compile.
- tehlike 9y agoFor c#, try compiling with IList instead of list. IList myList = new List<String>(); myList.add(new Object());