Finally, say goodbye to the dull, everyday drudgery of null reference exceptions.
最后,告别那些处理空引用异常的枯燥差事吧。
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.
为了避免这个问题的出现,您可以定义复合类型来封装数值类型,并将这个复合类型置为空来表示空引用。
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.
或者,引用类型变量可能不存放对任何对象的引用,这种情况称为空引用。
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.
或者,引用类型变量可能不存放对任何对象的引用,这种情况称为空引用。
应用推荐