Chirag <(E-Mail Removed)> wrote:
> I will soon be working on a embedded device using .NET Compact
> Framework where performance is a major issues. Therefore, I would like
> the ability to disable exceptions at compile time.
Have you actually measured the performance to check that they're
relevant? Surely if you've reached a situation where you'd normally
want to throw an exception, you still need to abort in a pretty hard
manner.
Even on the Compact Framework, exceptions are relatively cheap unless
you're throwing loads and loads of them. Have you measured how many
your app typically throws per second, and how many the device can throw
per second?
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too