Visual Studio C#: Why is a "using" directive insufficient for some libraries?
Posted
by JYelton
on Stack Overflow
See other posts from Stack Overflow
or by JYelton
Published on 2010-04-14T15:33:12Z
Indexed on
2010/04/14
15:43 UTC
Read the original article
Hit count: 245
Scenario: I needed to add HttpUtility to my project, and I started by adding "using System.Web" to my collection of using directives. However the HttpUtility class would still not resolve, and I discovered (via this question) that I needed to add a reference to my project.
Question: Why do I need to add a reference to this library when for most other classes a "using" directive will suffice?
© Stack Overflow or respective owner