I am writing an executable in C# that will send emails with links to my website. In this executable I want to format the URLs and part of that is to encode the URL parameters. However, I find that the Server.UrlEncode method is part of System.Web.HttpServerUtility and thus cannot be called from my executable. It seems like there is no reason that UrlEncode is part of this library... is there a way I can call this method or an equivalent one in my executable? Or will I have to disassemble the C# and copy out the implementation to my own methods?
Thanks for your help!