title: Parse string to decimal, commas and periods
body: <p>How to parse string to decimal so it would work for both formats - w/ commas and periods?</p>
  
  <pre><code>[Fact]
  public void foo(){
    var a="1,1";
    var b="1.1";
    Assert.Equal(Parse(a),Parse(b));
  }
  private decimal Parse(string s){
    return decimal.Parse(s,NumberStyles.Any,
      CultureInfo.InvariantCulture);
  }
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>Test 'Unit.Sandbox.foo' failed: Assert.Equal() Failure
  Expected: 11
  Actual:   1,1
  </code></pre>