3 ms·
The main reason for TryParse, AFAIK, is avoiding the massive expense of exceptions on the CLR. Another reason is composability. If you're checking several valu
by MichaelGG 14y ago
The main reason for TryParse, AFAIK, is avoiding the massive expense of exceptions on the CLR.
Another reason is composability. If you're checking several values together, returning a Maybe/Option is much more clear and usable.