How can I generate a unique hashcode for a string
<p>Is there any function, that gives me the same hashcode for the same string?</p>

<p>I'm having trouble when creating 2 different strings (but with the same content), their hashcode is different and therefore is not correctly used in a <code>Dictionary</code>.</p>

<p>I would like to know what <code>GetHashCode()</code> function the <code>Dictionary</code> uses when the key is a string.</p>

<p>I'm building mine like this:</p>

<pre><code>public override int GetHashCode()
{
   String str = "Equip" + Equipment.ToString() + "Destiny" + Destiny.ToString();
   return str.GetHashCode();
}
</code></pre>

<p>But it's producing different results for every instance that uses this code, despite the content of the string being the same.</p>
