Code Contracts & VS Extensibility

  Many times I’ve seen repetitive and obsessive validation of input parameters. It may be a consequence of confusion in what “defensive programming” paradigm really is. I will give a simple example – Let’s say we have a following code snippet: public class HashWriter : IHashWriter { public bool SaveHashItem(int duration, string hashId, string itemKey, T item) { var retVal = […]

Continue reading