历史上的坏主意-空引用?
最后,告别那些处理空引用异常的枯燥差事吧。
Finally, say goodbye to the dull, everyday drudgery of null reference exceptions.
这怎么能参考字符串会引起空引用异常?
How could this reference to a string be causing a Null reference Exception?
您会看到警告有关可能的空引用的工具提示。
You see a tooltip that warns about a possible null reference.
其他的特性还包括类不变量、非空引用类型和加强的静态分析功能。
Other features include class invariants, non-nullable reference types, and enhanced static analysis capabilities.
我可以想象有一个内存泄漏,也许,而是空引用我不理解。
I can imagine there being a memory leak, perhaps, but something null being referenced I'm not understanding.
某些特定的路径通过代码做的很好,但一个特定的路径引起的空引用异常。
Certain paths through the code do fine, but one particular path causes the Null Reference Exception.
或者,引用类型变量可能不存放对任何对象的引用,这种情况称为空引用。
Or a reference type variable might not hold a reference to any object, in which case it is said to be a null reference or a reference to Nothing.
可以利用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.
为了避免这个问题的出现,您可以定义复合类型来封装数值类型,并将这个复合类型置为空来表示空引用。
To avoid this problem, you can define a complex type to wrap the value type and set the complex type to be null to indicate a null reference.
VTL支持一种静态引用符号,以避免呈现不存在的或者空的引用。
VTL supports a quiet reference notation to avoid rendering nonexistent or null references.
您将看到资源引用的一个列表,这个列表可能会是空的。
You will see a list of resource references, which may be empty.
您可以显式地对它们进行检测,或在您引用它们时让PHP返回缺省的空值。
You can test for them explicitly or rely on PHP to return a default empty value when you reference them.
其次,失败的测试应当代表发生了意料之外的事(例如,引用为空),正常的执行不能继续。
Second, a failed test should indicate that something unexpected happened (for example, a reference is null) and normal execution can't continue.
我们可能不知道t类型代表什么,但我们知道null字母对任何引用类型而言是一个空值。
We may not know what type t represents, but we know that the null literal is a valid value for any reference type.
点击编辑器窗口下方的References标签,您将看到资源引用的一个列表,这个列表可能会是空的。
Click on the references TAB at the bottom of the editor window. You will see a list of resource references, which may be empty.
new函数除了构建一个包括它的对象引用以外,基本上没什么作用。而且您可以看到,其它的函数在执行前必须先将那个空指针解开。
The new function basically does nothing besides building the object reference to contain that, and you can see that the other functions have to unpack the void pointer before getting down to business.
所以,模型中的不一致性将会导致构建失败,例如,一个EOperationImpl可以声明某种返回类型,但是Returnref属性可以引用不同的类型或者为空。
As such, inconsistencies in the model will cause build failures. For example, an EOperationImpl may declare a certain return type, but the return ref property may refer to a different type or be null.
当所引用的资源(XFDL文档)的数字指纹被计算后,Reference 的DigestValue元素将为空。
When the digital fingerprint of the referenced resource (the XFDL document) is calculated, the DigestValue element of the Reference is empty.
一个弱引用对象将会保持一个指向一个超出作用域或者被置空的对象的引用,直到它确实被垃圾回收删除。
A weak reference object will keep a reference to an object that went out of scope or was set to null, until it is actually deleted by the garbage collector.
引用一个不在内存中的段(段描述符的段存在标志为空)。
A reference was made to a segment not present in memory (one in which the Segment-Present flag of the segment Descriptor was cleared).
如果没有匹配的实体声明,则附加一个空的文本节点作为实体引用节点的唯一子级。
If there is no entity declaration that matches, an empty text node is attached as the only child of the entity reference node.
程序包含一个空指针引用。
创建一个名为“物理测试”的空游戏对象并添加“物理测试”脚本,并设置它的方块引用和初始速度。
Create an empty game object named PhysicsTest and add script PhysicsTest to it and set both, cube reference and initial velocity of it.
通过指针映射集和故障模型,可以自动检测空指针引用内存故障,提高了测试效率。
Through pointer mapping set and fault model, it can detect null pointer dereference faults automatically and increases the testing efficiency.
通过指针映射集和故障模型,可以自动检测内存释放异常、内存泄露和空指针引用等动态内存故障,提高了测试效率。
Through pointer mapping sets and fault model, it can detect bad deallocation, memory leak and null pointer dereference faults automatically and increase the testing efficiency.
空指针态引用故障在使用指针的程序中是普遍存在的,采用动态测试方法进行测试难以准确定位故障源。
Null pointer dereference fault is ubiquitous in the program with pointers. It is difficult to locate fault sources adopting dynamic testing method.
笨重的车子在越发崎岖的道路上剧烈颠簸着,将法官最后诗意的引用一扫而空。之后走的六英里路,我们都没有说话。
We had not spoken during the passage of the last six miles, since the jolting of the heavy vehicle over the roughening road had spoiled the Judge's last poetical quotation.
此单元格内的公式引用了空单元格。
The formula in this cell refers to cells that are currently empty.
此单元格内的公式引用了空单元格。
The formula in this cell refers to cells that are currently empty.
应用推荐