I suppose you could do this?
public static bool TryParseExact(string text, string format, out double value)
{
if (double.TryParse(text, out value))
{
return text == value.ToString(format);
}
return false;
}
This is just an idea; To be completely honest, I didn’t really think that all this was happening.