Convert localized string into decimal
<p>I have a string, that could look like "123,34", "123123,09", "1234", "123.34", "123123.09"</p>

<p>(Stringrepresentation of 10,2 decimal that will be stored into a MySql DB)</p>

<p>Due to the culture of the ASP.net thread may differ, because my application supports localization, I need to find a safe way to convert the most likely user input into a decimal.</p>

<p>How is that possible?</p>

<p>I tried various Decimal.Parse attemps, that all failed so far.</p>

<p><strong>Solution</strong>:<br>
My final solution was a mixed one. I used string replace to ensure my date is formatted into the specified CultureInfo I used for parsing</p>
