结构为实值型别,而类别则是参考型别。
参考型别也可视为物件。
不同于参考型别,您无法从实值型别衍生新型别。
Unlike with reference types, you cannot derive a new type from a value type.
参考型别存在其他专案或参考组件中,而且为唯读。
A referenced type exists in another project or in a referenced assembly and is read-only.
限制型别参数只接受参考型别,或者不要在选择性参数中使用它。
Constrain the type parameter to accept only a reference type, or do not use it for the optional parameter.
若要避免这个错误,请使用类别型别条件约束或参考型别条件约束。
To avoid this error, use a class type constraint or a reference type constraint.
如果两个阵列都具有参考型别元素,则来源元素型别必须衍生自目的元素型别。
If both arrays have reference type elements, the source element type must derive from the destination element type.
以传值方式传递参考型别参数时,它有可能会变更到参考指到的资料,例如类别成员的值。
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.
在载入参考的型别程序库之前,必须将它的参考档案路径解析为完整档案路径。
Before a referenced type library can be loaded, its reference file path must be resolved to a full file path.
将实值型别参考推入至堆叠。
型别参考是从堆叠取出,并且撷取其对应的型别语汇基元。
The typed reference is popped from the stack and its corresponding type token retrieved.
型别参考包含型别语汇基元和物件执行个体的位址。
A typed reference contains a type token and an address to an object instance.
这个集合所参考的型别必须由介面所组成。
The types referenced by this collection must consist of interfaces.
将属性型别定义移至其他专案、然后建置该专案并且将此新组件的参考加入至目前专案。
Move the definition of the property type to another project, build the project, and then add a reference to that new assembly to the current project.
在专案中加入COM元件或型别程序库的参考。
Add to the project a reference to the com component or type library.
应用程序因此可以使用实作内嵌型别资讯之执行阶段组件中的型别,而不需要参考执行阶段组件。
The application can then use types in a runtime assembly that implement the embedded type information without requiring a reference to the runtime assembly.
这个结构只支援不包含参考的阵列,例如基本型别阵列和只包含基本型别栏位的实值型别阵列。
This structure only supports arrays containing no references, such as primitive type arrays and value type arrays containing only fields of primitive types.
您通常会使用静态参考从型别(包括因型别为静态而无法在XAML中执行个体化的型别)取得静态值。
You typically use static references to obtain static values from types, including from types that cannot be instantiated in XAML because the type is static.
当您在加入或复制现有的具型别资料集,而其中含有专案应用程序设定中的连接字串参考时,就会出现这个对话方块。
This dialog box appears when adding or copying an existing typed dataset that includes references to a connection string in the project's application Settings.
这个类别表示组件参考的型别。
这个类别表示组件参考的型别。
应用推荐