title: Convert decimal to string without commas or dots
body: <p>In .NET, I need to convert a decimal amount (money) to a numbers-only string, i.e:
  123,456.78 -> 12345678</p>
  
  <p>I thought </p>
  
  <pre><code>var dotPos = amount.ToString().LastIndexOf('.');
  var amountString = amount.ToString().Remove(dotPos);
  </code></pre>
  
  <p>would solve my problem, or at least part of it, but it didn't work as I expected.
  I'm trying to do this possibly without writing a lot of code and using something already designed for a similar purpose.</p>