Which HttpUtility decode method to use?
<p>this may be a silly question, but it trips me up every time.</p>

<p><code>HttpUtility</code> has the methods <code>HtmlDecode</code> and <code>UrlDecode</code>. Do these two methods decode anything (Html/Http related) I might find? When do I have to use them, and which one am I supposed to use?</p>

<p>Just now I hit an error. This is my error log:</p>

<pre><code>Payment receiver was not payment@mysite.com. (it was payment%40mysite.com).
</code></pre>

<p>But, I wrapped the email address here in <code>HttpUtility.HtmlDecode</code> before using it. It turns out I have to use <code>.UrlDecode</code> instead, but this email address didn't come from a URL so this wasn't obvious to me.</p>

<p>Can someone clarify this?</p>
