什么是什么时候使用
[ContractClassFor(typeof())]
MSDN 解释并没有告诉我太多关于它的信息。谢谢,
最佳答案
此属性允许您为接口(interface)定义代码契约(Contract)条件。有关更多详细信息,以下站点可能会有用 http://devjourney.com/blog/code-contracts-part-5-abstract-types-and-interfaces/
更新:Kevin 似乎删除了内容。可以在此处找到内容的缓存:http://web.archive.org/web/20120105070912/http://devjourney.com/blog/code-contracts-part-5-abstract-types-and-interfaces/
关于c# - ContractClassFor 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10622267/