what does "~" do in C#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/188688/what-does-the-tilde-mean-in-c">What does the tilde (~) mean in C#?</a><br>
  <a href="http://stackoverflow.com/questions/387424/what-is-the-tilde-in-a-c-sharp-enumeration">What is the tilde (~) in a C# enumeration?</a>  </p>
</blockquote>



<p>I know "~" is for Finalzier methods but now I saw some C# code like this:</p>

<pre><code>if (~IsFieldDeleted(oRptField.GetLayoutField()) != 0)
{
   oCollection.Add(oRptField, oRptField.ObjectKeyString);
   // some more stuff
}
</code></pre>

<p>notice that "~" in the first line?</p>

<p>and then if I go to implementation of IsFieldDeleted it is a method that returns an int.</p>

<pre><code>private int IsFieldDeleted(LayoutLib.LayoutField oLayoutField)
{
    Collection oColl = GetFieldIdsForField(oLayoutField);

    return (oColl.Count == 0) ? 1 : 0;

}
</code></pre>
