7

What is and when would I use

[ContractClassFor(typeof())]

MSDN explanation is not telling me much about it. Thank you,

4

1 に答える 1

7

この属性を使用すると、インターフェイスのコードコントラクト条件を定義できます。詳細については、次のサイトが役立つ場合があります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/

于 2012-05-16T16:04:31.547 に答える