title: How to check two strings for difference in casing only?
body: <p>Following pairs of string are possible. Now my goal is to detect only the casing difference in the first example:</p>
  <ol>
  <li>&quot;abC&quot;,&quot;abc&quot;</li>
  <li>&quot;abc&quot;,&quot;abc&quot;</li>
  <li>„abDef&quot;,&quot;abc&quot;</li>
  </ol>
  <p>My approach would be first to compare the strings with ignorecase = true in C#:</p>
  <p><code>String.Compare(string1, string2, true)</code> returns 0 for 1.+2. and returns 1 for the 3. possibility <br></p>
  <p>So checking for 0 as result I can narrow down my results to two possibilities which I check now with ignorecase = false:</p>
  <p><code>String.Compare(string1, string2, false)</code></p>
  <p>So checking now for 0 would give me the right result. Is there any better solution to achieve this in one compare step?</p>