I have a number of Contract.Assert
statements in my code. When in Debug Mode, the assertions that fail throw an assertion failed dialog.
There are two things I don't understand about this:
Are Contracts not controlled by the Rewiter? So I thought if that it was unchecked, that no Contracts would be enforced. If this is not the case, what is controlled by the Runtime checking checkbox? What is not?
Why is an Assertion dialog thrown? They seem kind of useless, as in Silverlight, all I get is a IE dialog saying that an assertion has failed. I would prefer an exception.
Greg