How Can I Parse a Number Equivalent to DateTime.TryParseExact?
<p>I have a requirement where the client needs to validate a bunch of excel spreadsheets. One of the validation rules is that this field must be a number that looks like 'x.xx' (so '3.00' is valid, '3.000' is not). This should be as easy as Double.TryParseExact(s, "#.##", out number) but I guess it is not there. Is there a way to get this done without using regular expressions? The client is using a DSL and I don't want to make them learn regular expressions.</p>
