+ 8

List in C#?

I want to declare a list in C# but it puts out the error: ” The type or namespace name 'List<>‘ could not be found (are you missing a using directive or an assembly reference?)“ Does anyone know how to fix this an declare a list ?

28th Mar 2019, 8:55 PM
Cesar Andres
Cesar Andres - avatar
3 Respuestas
+ 2
List is in System.Collections.Generic; namespace. Do you have this one included ? https://code.sololearn.com/czE9KfzqOhFM
28th Mar 2019, 9:17 PM
sneeze
sneeze - avatar
+ 1
If a answer helped you please give it a like. If it was the best answer please mark it as best. I do appreciate it
28th Mar 2019, 10:30 PM
sneeze
sneeze - avatar
0
Thank you !
28th Mar 2019, 10:02 PM
Cesar Andres
Cesar Andres - avatar