How can I check if two strings match or if one is null in C#
<p>I tried the following:</p>

<pre><code>(id == title) | (id.IsNullOrEmpty) ? "class='enabled'" : ""
</code></pre>

<p>But it gives a message saying "Error    22  Operator '|' cannot be applied to operands of type 'bool' and 'method group'    </p>

<p>Can anyone tell me what's wrong. Both id and title are strings. </p>
