Cant use "System.Collections.Generic.List" (C#)

Hello,
Im trying to use List in my script,
but Unity always tell this error though I add using System.Collections.Genreric at the top of the script:
The type or namespace name `List’ could not be found. Are you missing a using directive or an assembly reference?
why is that?:face_with_spiral_eyes:

System.Collections.Genreric ! = System.Collections.Generic maybe ?
Do you get errors ?

Generic has no List it only has the generic List<>

just wrong keying in forum, sorry :stuck_out_tongue:

I think Dreamora nailed it.
List always 100% of the time requires a generic parameter alongside it (or to use the IList interface [or other shared collection interface])
And when it has a generic parameter declared with it, it’ll show up in errors as List’1 and not List.

thanks a lot , it work.
I just thought that I can code like : List variableName;
thanks!

First time using generic so made this noob mistake.

No problem, if you are new to the whole thing, generics can catch you off defense from time to time with things you didn’t expect or that are not exactly the same as with “Object” based datastructures from System.Collections