title: Globally set String.Compare/ CompareInfo.Compare to Ordinal
body: <p>I'm searching for a strategy with which I can set the default sortorder of String.CompareTo  to bytewise - ordinal. I <strong>need</strong> to do this without having to specify the sortorder in the call to the method.</p>
  
  <p>I have tried out several strategies without satisfactory results. I got as far as this:</p>
  
  <pre><code>CultureAndRegionInfoBuilder crib = 
              new CultureAndRegionInfoBuilder("foo", CultureAndRegionModifiers.Neutral);
  
          CompareInfo compareInfo = new CustomCompareInfo();
          crib.Register();
  </code></pre>
  
  <p>In this CustomCompareInfo I try to override the default CompareInfo class, but unfortunately this does not compile:</p>
  
  <pre><code>The type 'System.Globalization.CompareInfo' has no constructors defined
  </code></pre>
  
  <p>I'm stuck here. Got the feeling that a custom implementation of CompareInfo is the solution to my problem.</p>
  
  <p>Got any ideas on this?</p>
  
  <p>Edit: context of my question:</p>
  
  <p>This project I'm working on is quite unusual - a huge codebase has been converted from an other programming language to .NET. In this programming language the string comparison defaults to ordinal and this difference with .NET is causing bugs in the converted codebase, so I figured it would be the most elegant solution if we'd be able to configure .NET to the same default behavior. </p>
  
  <p>Of course it is possible to reconvert the code using a comparison-specifier. Or, we could introduce an extension method which performs a ordinal (binary) comparison. Et cetera.. </p>
  
  <p>However, as far as I am concerned, from an architectural viewpoint, these solutions are less elegant. This is the reason why I am searching for a solution with which I can set this ordinal comparison globally on the framework.</p>
  
  <p>Thanks in advance!</p>