Is there a way to set a DLL to always follow CultureInfo.InvariantCulture by default, if not specified?
<p>I have a lot of code in a class library that does not specify <code>CultureInfo.InvariantCulture</code>. For example in toString operations, toBool, toInt, etc. </p>

<p>Is there a way I can get set a property for the class library to always execute using <code>CultureInfo.InvariantCulture</code>, even if it is not explicitly specified everywhere in the code?</p>

<p>Sort of like a global switch?</p>

<p>It is not only messy to have to explicitly type it everytime, it makes my code less readable, and is a royal pain for example:</p>

<pre><code>if (Convert.ToInt16(task.RetryCount, CultureInfo.InvariantCulture) &lt;
            Convert.ToInt16(ConfigurationManager.AppSettings["TasksMaxRetry"], CultureInfo.InvariantCulture))
</code></pre>
