Exceptions: When to use, timing, overall use
问题 I'll try and ask my question so it doesn't end as a simple argumentative thread. I've jumped into an application coded in C# recently and I'm discovering the exception mechanism. And I've had a few bad experiences with them such as the following // _sValue is a string try { return float.Parse(_sValue); } catch { return 0; } I changed it into : float l_fParsedValue = 0.0f; if (float.TryParse(_sValue, out l_fParsedValue)) { return l_fParsedValue; } else { return 0; } Result, my Output in Visual