.net 4.0 Code Contracts. When to use? When are they a waste of time?
问题 I have been studying .NET 4.0 Code Contracts and looking on stackoverflow as well at question regarding this. I still have never come across any sample code that uses code contracts so that gets me wondering.. is this really useful ? Or maybe its only useful one your code reaches a certain complexity? Anyone out there using Code Contracts and really glad they did? Seems to me that all Code Contracts are is a Assertion on what goes in and what goes out of a method with the addition of being