[Mono-dev] [PATCH] Int32.Parse
Carlos Alberto Cortez
calberto.cortez at gmail.com
Thu Oct 20 04:26:06 EDT 2005
Currently the Int32.TryParse method calls the Int32.Parse method, and
catches the exceptions. That's not the best behaviour, since
Int32.TryParse is designed to avoid the performance problems associated
with exception handling.
The attached patch proposes an approach to keep the result of the
parsing as an enum, and based on it the methods decide whether they
throw an exception or not.
I wanted you to take a look at it, since we need to decide the best
solution for this before changing the TryParse/Parse methods in other
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11694 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051020/aa688ada/attachment.bin
More information about the Mono-devel-list