title: C# Converting a string containing a floating point to an integer
body: <p>What is the best way to take a string which can be empty or contain "1.2" for example, and convert it to an integer? <code>int.TryParse</code> fails, of course, and I don't want to use <code>float.TryParse</code> and then convert to <code>int</code>.</p>