Features you can use to pound out better code more quickly include things like the Surround With menu and help for catching null references.
可以利用Surround With菜单和捕获空引用等特性更快地获得更好的代码。
So in the example above, the NOT NULL constraint would get violated, and the INSERT statement would error out.
因此,在上面的示例中,会违反NOT NULL约束,INSERT语句会出错。
Suppose a .NET client sends out an array with a null element as shown in the code in Listing 9.
假设.NET客户端发出含有空元素的数组,代码如 清单 9所示。
If the value turns out to be null, I then throw a RuntimeException to alert everyone of the potential problem.
如果其值最终为null,我就会抛出一个RuntimeException来警告他人注意这个潜在问题。
If you can rule out the null hypothesis, then you will make some progress towards answering the original question about whether Keith's is the most popular brand.
如果您能够排除虚假设,那么您在回答Keiths是否是最受欢迎品牌这个最初的问题上取得了一些进展。
Items that could not be found (their price is NULL) can be filtered out.
对于不能找到的产品(价格为NULL),可以将其过滤掉。
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.
还有一个重点需要注意:在清单7中的以下代码行(在下面的清单8中断开)中,这段代码测试每个单元格,确保它们不为空。
The cure for object loitering in this case is to null out the reference after popping it from the stack, as shown in the commented-out line of code in Listing 3.
修复这种情况下的对象游离的方法是,当对象从堆栈弹出之后,就消除它的引用,如清单3中注释掉的行所示。
The cure for object loitering in this case is to null out the reference after popping it from the stack, as shown in the commented-out line of code in Listing 3.
修复这种情况下的对象游离的方法是,当对象从堆栈弹出之后,就消除它的引用,如清单3中注释掉的行所示。
应用推荐