Defining operators and testing for null
<p>I have a class in C# where I define the operator ==. The method I have currently throws an object is null exception when testing the following</p>

<pre><code>MyClass a = new MyClass(); if(a==null)....
</code></pre>

<p>This is frustrating because in the definition of the operator i can't ask if either parameter is null because it will just go into infinite recursion.</p>

<p>How do I test to see if either parameter is null when defining the == operator.</p>
