Using of Code Contracts

Oct 2, 2012 at 10:27 PM

What do you think about using of Code Contracts instead of if-throw pattern for preconditions and add postconditions if necessary?

Coordinator
Oct 3, 2012 at 11:43 AM

I try to add preconditions wherever possible and the code contracts approach is something I like in principle. Unfortunately I am currently using the Express SKU of Visual Studio 2012 and as far as I am aware this does not support code contracts. I'll double check that though.

Thanks for the suggestion,

    Andy

Oct 4, 2012 at 11:02 AM

I think, it has to work. Because it is just a post-build task added to project file