Extracting Implicit Contracts from .NET Libraries

Karine Arnout
ETH Zurich

Can libraries written without explicit support for Design by Contract™ in the language or the method benefit from a-posteriori addition of contracts? To help answer this question, we performed an empirical study of classes from the .NET Collections library, which doesn't use Design by Contract, to search for unexpressed contracts.