ContractClassFor Attribute

What and when will I use

[ContractClassFor(typeof())] 

The MSDN explanation does not tell me about this. Thanks,

+6
source share
1 answer

This attribute allows you to define the conditions of the Contract for the interface. For more details, the following site may be useful: http://devjourney.com/blog/code-contracts-part-5-abstract-types-and-interfaces/

Update: It looks like Kevin has deleted the content. The content cache can be found here: http://web.archive.org/web/20120105070912/http://devjourney.com/blog/code-contracts-part-5-abstract-types-and-interfaces/

+7
source

Source: https://habr.com/ru/post/915918/


All Articles