[Solved] I cannot see (run) the WebClient class in C#?

  

4
Topic starter

I cannot see and run WebClient class in C#, use it's methods and download something. I have this warning:

Error    1    The type or namespace name 'WebClient' could not be found (are you missing a using directive or an assembly reference?)

2 Answers
3

Did you add

using System.Net;

at the top?

1

Or you can use ReSharper:  https://www.jetbrains.com/resharper/  to add some stuff automatically 😉

See the video to understand better:

Share: