This project is read-only.

Using of Code Contracts

Oct 2, 2012 at 11:27 PM

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

Oct 3, 2012 at 12:43 PM

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,


Oct 4, 2012 at 12:02 PM

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