C#4.0中的代码合约图书 [英] Books on Code Contracts in C# 4.0

查看:168
本文介绍了C#4.0中的代码合约图书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经知道Code Contracts一段时间了,因为我在Java中使用了一点,我想开始使用它们在C#,现在他们是C#4.0的一部分。



我在学习材料,书籍或视频。 Altough教程也是欢迎的,我想有一些全面阅读,而不是典型的这里是如何使用Requires,这里是如何使用Ensures。我正在寻找在这一领域真正突出的东西。



感谢

解决方案>

Jon Skeet在第二版的 C#in Depth 中有一整章专门讨论它们。它基于最后一次MEAP更新大约40页。这不是最终的,因为正如Joel所说,它还没有出来,但你可以购买它并访问MEAP版本: http://www.manning.com/skeet2/



C#4.0 in a Nutshell 13,诊断和代码合同。根据目录中的章节标题,我估计了大约17页的主题。



我想象Andrew Troelsen的 Pro C#2010和.NET 4平台 书将覆盖它,但我无法找到TOC


Altough I've known Code Contracts for some time, as I've used it a bit in Java, I would like to start using them in C#, now that they are part of C# 4.0.

I am looking on learning material, books or vids. Altough tutorials are also welcome, I'd like to have something comprehensive to read, not the typical "here's how you use Requires and here's how you use Ensures". I am looking for something that really stands out in this area.

Thanks

解决方案

Jon Skeet has an entire chapter dedicated to them in the 2nd edition of C# in Depth. It's roughly 40 pages based on the last MEAP update. This isn't final since, as Joel mentioned, it's not out yet, but you could buy it and get access to the MEAP releases: http://www.manning.com/skeet2/

C# 4.0 in a Nutshell covers it in Ch. 13, "Diagnostics and Code Contracts." Based on the chapter headings in the table of contents I estimate ~17 pages on the topic.

I imagine Andrew Troelsen's Pro C# 2010 and the .NET 4 Platform book will cover it, but I wasn't able to find a TOC for it.

这篇关于C#4.0中的代码合约图书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆