title: String compare in C# with LINQ Expression
body: <p>I am trying to resolve the issue with string compare in c# but unfortunately, it is not working</p>
  <pre><code>Expression&lt;Func&lt;Physician, bool&gt;&gt; PredicateLicense = x =&gt; x.LicenseNumber == LicenseNumber;
  </code></pre>
  <p>this is what I have done</p>
  <pre><code>Expression&lt;Func&lt;Physician, bool&gt;&gt; PredicateLicense = string.Compare(x =&gt; x.LicenseNumber,LicenseNumber,true);
  </code></pre>
  <p>but the above line throws an exception. how can I do that?</p>