例如,内置的引用类型有:object、dynamic和string。 E1和e2都是对象引用类型的数组,并且Arrays.
E1 and e2 are both arrays of object reference types, and Arrays.
Since every reference type represents an underlying.
C provides two types of data types: Value types and Reference types.Combinations with other parts of speech
If T is reference type, nothing is done.
C supports two major kinds of types: value types and reference types.类型说明符是指针或者引用类型,但不是universalreference.
ParamType is a pointer or reference type, but not a universal 1 reference..
Classes are reference-type, and Structures are value-type.
The lifetime of the reference type is managed by the. NET framework.
T has a non-static data member of a reference type;与值类型不同,引用类型在分配给变量或常量时或者传递给函数时不会被复制。
Unlike value types, reference types are not copied when they are assigned to a variable or constant, or when they are passed to a function.Java的当前版本只允许泛型类型包含引用类型,而且Java编译器会在编译时删除它所包含类型的详细信息。
Current versions of Javaonly allow generic types to contain reference types, and the Java compiler removes the detail of the contained type during compilation.另一方面,类是引用类型(第4.2节)且被称为具有引用语义。
Classes, on the other hand, are reference types(Section 4.2) and are said to have reference semantics.相反,当封送引用类型对象时,并不需要ref和out关键字,因为变量已经是对象的引用了。
In contrast, the ref andout keywords are not necessary when marshaling reference type objects because the variable already is a reference to the object.转换为左值引用类型的转型表达式,例如static_cast<int&>(x);.
A cast expression to lvalue reference type, such as static_cast<int&>(x);注意到类型参数仅能代表引用类型,而不是原始类型(就像int,double和char)。
Note that type parameters can represent only reference types not primitive types(like int, double and char).目标类型必须是指针或引用类型,并且表达式必须计算为指针或引用。
The target type must be a pointer or reference type, and the expression must evaluate to a pointer or reference..另外,由于结构不是引用类型,因此结构类型的值不可能为null。
Furthermore, because structs are not reference types, it is not possible for values of a structtype to be null.因为test也是标识符,这样就产生了另外的引用类型的值,其中base对象(全局对象)就是this的值:.
Because test, being the identifier, produces other value of Reference type, which base(the global object) is used as this value:.因为类是引用类型,有可能有多个常量和变量在幕后同时引用同一个类实例。
Because classes are reference types, it's possible for multiple constants and variables to refer to the same single instance of a class behind the scenes.以上代码创建了Object引用类型的一个新的实例并保存到变量person中。
This code creates a new instance of the Object reference type and stores it in the variable person.设计工具可以利用名称空间使开发人员更容易在代码中浏览和引用类型。
Design tools can make use ofnamespaces to make it easier for developers to browse and reference types in their code.交错数组是数组的数组,因此其元素是引用类型并初始化为null。
A jagged array is an array of arrays,and therefore its elements are reference types and are initialized to null.通常,默认值表达式用于类型参数,因为可能并不知道类型参数是值类型还是引用类型。
It should usually be used with Generic types(T) since we may not besure whether the type is a value type or reference type.这个仅用于将对象指针和对象引用转换为继承层次结构中的其他指针或引用类型。
This one is only used to convert object pointers andobject references into other pointer or reference types in the inheritance hierarchy.如果你不知道你正在使用的对象是否是值类型或引用类型,你可能会遇到一些惊喜。
If you don't know whether the objectyou're using is a value type or reference type, you could run into some surprises.在Java,C和VB.NET里,构造器会在一种叫做堆的特殊数据结构里建立作为引用类型的实例。
In Java, C, and VB. NET, the constructor creates reference type objects in a special memory structure called the"heap".深入研究Java内存管理,将增强你对堆如何工作、引用类型和垃圾回收的认识。
This deep dive into Java memory management willenhance your knowledge of how the heap works, reference types, and garbage collection.