When you use generics, you supply that added information as part of the source code, and the compiler incorporates the added reference type information directly into your binary class files.
在使用泛型时,可以提供附加信息作为源代码的一部分,然后编译器会把附加的引用类型信息直接整合到二进制的类文件中。
It might be worth considering an enumeration here since it would remove the need for a reference type and store the value directly in the class.
这里,使用枚举可能值得考虑,因为它可以消除对引用类型的需要,并且将值直接存储到类中。
If you try to print or view a class file as text, you'll generally see many strings of this type, each a reference to some class.
如果您尝试将一个类文件作为文本输出或查看,那么通常会看到上述形式的多个字符串,每个字符串都是对某个类的引用。
OK, so you can't copy a reference to a type whose class is totally unknown at compile time.
因此,不能复制在编译时根本不知道是什么类的类型引用。
The JMS message type formats are defined in the com.ibm.websphere.sib.SIApiConstants class for your reference.
JMS消息类型格式定义在用于引用的 com.ibm.websphere.sib.SIApiConstants类中。
The FieldDescription class is just a simple data class that holds the field name, signature, and a reference to the field type.
fielddescription类只是个简单的数据类,容纳字段名称、签名和字段类型的引用。
A specialized type does not need to change the class attribute for elements that it does not specialize, but simply reuses by reference from more generic levels.
专门化类型不一定要改变未专门化元素的class属性,值需要通过引用更一般的层级重用。
If the base member took different arguments than the derived-class member, there would be no way to call the derived function from a reference or pointer to the base type.
如果基类成员与派生类成员接受的实参不同,就没有办法通过基类类型的引用或指针调用派生类函数。
Hence a variable of a class type can reference an instance of any descendant type.
因此,类类型的变量可以引用其所有子孙类型的实例。
This means that if a variable is declared to be the type of an interface, its value can reference any object that is instantiated from any class that implements the interface.
这意味着,如果一个变量被声明为接口类型,其值可参考,即实例化任何实现接口的类的任何对象。
However, when it occurs within the declaration portion of a managed reference class type, it is treated as a keyword within the context of that class declaration.
但是,当它出现在托管引用类类型的声明部分中时,将其视为该类声明的上下文中的关键字。
The class type and string type are reference types.
类类型和字符串类型属于引用类型。
Name of the class representing the type of reference in the discovery document.
表示发现文档中引用类型的类的名称。
The reason to reference another assembly is simply to make use of a type in that assembly, so let's assume that the SomeTypes. DLL assembly includes the implementation for the CoolType class.
引用另外一个组件的原因可以简单的另在那个组件中的类型可以在这里使用,所以我们可以认为SomTypes.dll组件包含了CoolType类的实现。
A struct is a value type, while a class is a reference type.
结构是值类型,而类是引用类型。
To avoid this error, use a class type constraint or a reference type constraint.
若要避免这个错误,请使用类别型别条件约束或参考型别条件约束。
When you pass a reference-type parameter by value, it is possible to change the data pointed to by the reference, such as the value of a class member.
以传值方式传递参考型别参数时,它有可能会变更到参考指到的资料,例如类别成员的值。
When you pass a reference-type parameter by value, it is possible to change the data pointed to by the reference, such as the value of a class member.
以传值方式传递参考型别参数时,它有可能会变更到参考指到的资料,例如类别成员的值。
应用推荐