Code Contract的意思|示意

美 / / 英 / /

代码合同


Code Contract的网络常见释义

代码契约 代码契约(Code Contract)就是让你用额外的代码来表达应用程序中对代码的假设情况,一般可以执行前置条件、后置调剂和不变式。

代码协定 代码协定(Code Contract)的核心类是“Contract”,以下是一个示例:

Code Contract相关短语

1、 Contract Code 合同代码 ; 合约代码 ; 合同守则

2、 Chinese Contract Code 光船租赁合同

3、 Contract Code Credit Enterprise 重合同守信用企业

Code Contract相关例句

Rewriting code alters the behavior and even the contract of code, while refactoring preserves its outward interface.

重写代码会修改代码的行为甚至合约,而重构保持对外接口不变。

Listing 3 shows the code generated for the Data Contract definition.

列表3显示了Data Contract定义生成的代码。

That contract does not allow this method to throw a run-time exception (barring violations of generic type safety that qualify as bugs in the calling code).

这个合约不允许该方法抛出运行时异常(防止因违反泛型类型安全而成为调用代码中的bug)。

These primary two features — access control and contract programming — allow for much larger teams of coders to work on much larger code bases more smoothly.

这两个主要特性——访问控制和契约编程——允许大型编码人员团队更顺畅地使用大型代码库。

If you are writing the server-side code and the client-side code based on a machine-readable contract such as a WADL document, the coding flow may be as follows.

如果你正在编写基于机器可读契约(如wadl文档)的服务器端代码和客户端代码,编码流程可能如下。

If everyone fully understands and adheres to the contract of the functions of a particular DLL, shouldn't updating that DLL in theory not break any code?

假如每个人都完全理解并且遵循特定dll的功能契约,那么在理论上,是否不应该升级dll,以避免对某些代码的破坏?