Finding usages of string == operator in a large codebase
<p>I've had a request to look into the feasibility of replacing all of the string <code>==</code> operator usages in a reasonably large C# codebase with <code>String.Equals()</code> method calls that explicitly specify case-sensitivity.</p>

<p>Haven't had much luck figuring out a way to identify all the occurrences in the codebase, though.</p>

<ul>
<li>Searching for "==" obviously finds countless instances of types other than strings being compared.</li>
<li>There doesn't seem to be a StyleCop rule to find this.</li>
<li>Nor a ReSharper rule.</li>
<li>As a last resort I tried loading the assemblies into JustDecompile and finding all usages of <code>System.String.op_Equality</code> but that doesn't seem to pick up usages inside of LINQ expressions such as <code>.Where(x =&gt; x.StringField == stringField)</code></li>
</ul>

<p>So I'm a little stumped and wondered if anyone had any ideas on how to search these pesky comparisons out?</p>
