此外,它并不指出在代码的何处这个空指针被赋值。
Furthermore, it says nothing about where in the code the null pointer was actually assigned.
清单26中的代码创建了一个新的(空)数据库,名为movies - b(因为两个数据库不能拥有相同的名称),然后将movies数据库复制到这个新数据库。
The code in Listing 26 creates a new (empty) database called movies-b (because both databases can't have the same name) and then replicates the movies database to it.
换句话说,如果SAD中的指示,连同实际的用例规格说明对开发人员来说足够构建用例的代码,那么用例实现就是空的。
In other words, if the directions in the SAD together with the actual Use-Case Specification are sufficient for the developer to build the code of the use case, the Use-Case Realization is empty.
清单5给出的代码在优化了空基类的编译器上证明了这一点。
Listing 5 shows the code that proves the point on compilers optimizing empty base classes.
生成的方法是空的,因为要由开发人员负责提供满足操作要求的代码。
The generated method is empty because it's up to the developers to provide code that satisfies the requirements of the operation.
“外接程序向导”生成基本的空程序后,可向其添加代码并对其进行自定义。
After the Add-In Wizard generates the basic bare program, you can add code to it and customize it.
所以在继续执行前,在代码中检查返回值是否为一个空句柄是非常重要的。
It is therefore important that your code checks a return value is not an empty handle before continuing execution.
首先,执行断言检查的代码可能比简单的空值检查要复杂得多。
First of all, the code doing the check may be far more complicated than a simple check for null.
我为这个MethodGen设置一个空的指令清单,在后面我将用实际的计时代码填充它。
I set an empty instruction list for this MethodGen, which I'll later fill in with the actual timing code.
可以利用Surround With菜单和捕获空引用等特性更快地获得更好的代码。
Features you can use to pound out better code more quickly include things like the Surround With menu and help for catching null references.
一个空的函数,它作为实际执行所需工作的代码的占位代码。
An empty function as a placeholder for the code that will actually perform the desired work.
在完全由可验证托管代码组成的程序中,所有引用都有效或者为空,因而不会产生访问冲突。
In programs consisting entirely of verifiable managed code, all references are either valid or null, and access violations are impossible.
因为空指针异常更难诊断,这种“修正”实际上会降低代码的质量。
Because null-pointer exceptions are more difficult to diagnose, this "fix" would actually decrease the quality of the code.
如果此属性为空,则将生成的代码放入转换的文件所在的文件夹的默认命名空间中。
If the property is empty, generated code is put in the default namespace for the folder in which the converted file is located.
adapter类,这个类提供了一些空的方法实现,并且可以减少您需要编写的代码数量。
Adapter class that provide empty implementations of the methods and can reduce the amount of code you need to write.
还有一个重点需要注意:在清单7中的以下代码行(在下面的清单8中断开)中,这段代码测试每个单元格,确保它们不为空。
One more important note: in the following lines of code from Listing 7, broken out in Listing 8 below, the code tests each cell to make sure it's not null.
在许多情况下,这些方法实现都是空的,它们之所以存在只是为了满足接口的要求,让代码能够通过编译,这使代码很杂乱。
In many cases, these method implementations wind up empty and exist only to satisfy the interface and allow the code to compile, leading to cluttered code.
上述命令会创建一个名为example的项目,在之前指定的Git目录里初始化一个空的代码库。
This will create a project called example, and initialise an empty repository in the gits location specified above.
请注意,在标记编译生成操作的默认行为下,您可以在代码隐藏端的分部类定义中将派生保留为空。
Note that under the default behavior of the markup compile build actions, you can leave the derivation blank in the partial class definition on the code-behind side.
请注意,在标记编译生成操作的默认行为下,您可以在代码隐藏端的分部类定义中将派生保留为空。
Note that under the default behavior of the markup compile build actions, you can leave the derivation blank in the partial class definition on the code-behind side.
应用推荐