<p>Is there a way I can configure the MidPointRounding enumeration default setting in a config file (I.e. web.config or app.config)  I have a considerable source code base, and I need to configure at the application scope how rounding will occur, whether used in Math.Round or decimal type rounding...  I would like to do this in order to get consistent rounding results throughout the application without changing every line that works with a decimal type or uses Math.Round....</p>

[{'answer_id': 64271, 'author': 'rohancragg', 'author_id': 5351, 'author_profile': 'https://Stackoverflow.com/users/5351', 'pm_score': 0, 'selected': False, 'text': "<p>Enum.Parse() is your friend here</p>\n\n<pre><code>MyEnum GetEnumValue(string enumString) {\n  return (MyEnum)Enum.Parse(typeof(MyEnum),enumString);\n}\n</code></pre>\n\n<p>Obviously you'd also need some error-checking on the string you're getting from you're config file in which case you might want to return a default.</p>\n"}, {'answer_id': 173291, 'author': 'Jonathan Allen', 'author_id': 5274, 'author_profile': 'https://Stackoverflow.com/users/5274', 'pm_score': 1, 'selected': False, 'text': '<p>You can play games with post-compile tools that alter the assembly to call your function instead of Math.Round. However, I would just bite the bullet and change the source code.</p>\n'}]
['https://Stackoverflow.com/questions/63723', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']