A few points:
- You need a reference to the assembly
System.Web - You need to get the class name correctly (
HttpServerUtility , not HttpServerUtuility ) - You need to get the method name correctly (
UrlDecode , not UrlDecode ) - You need an instance of the class, as this is an instance method
Retrieving an instance is likely to be the hardest part, unless you are in ASP.NET β it does not have any public constructors or a static property to retrieve the instance. Usually you use HttpContext.Server . An alternative is to use HttpUtility.UrlDecode , which is a static method. (Again, you will need a link to System.Web .)
Jon skeet
source share