I agree and disagree. I've come to appreciate the methods that throw. At minimum, each method that can fail should have both a throwing and non-throwing variant (Parse vs TryParse). .NET has been improving in this area (by way of things like HttpClient returning a status code and letting you choose whether to throw via helper method).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Reduce use of exceptions in general. Some functions return an error value, others throw. Very annoying.
I agree and disagree. I've come to appreciate the methods that throw. At minimum, each method that can fail should have both a throwing and non-throwing variant (
Parse
vsTryParse
). .NET has been improving in this area (by way of things likeHttpClient
returning a status code and letting you choose whether to throw via helper method).