Languages

C# - The type or namespace name `List' could not be found.

3 points
Asked by:
Mohammad-Oneal
327

When I try to create List<int> object, I get the following error:

My code:

1 answer
3 points
Answered by:
Admin Dirask Community
4380

You forgot to import System.Collections.Generic in your code.

Working example:

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join