A value type or reference type refers to how a programming element is stored in memory.
而值类型或引用类型是指编程元素将以何种方式存储在内存中。
In C# you can flag a value type as a nullable type by adding ? after the type (like int? x;).
在C#中,你可以在一个允许为空的值类型后面加上一个问号(比如,int?x;)。
The object of a value type is in the stack, but the object of a reference type is in the heap.
数值类型的对象位于栈中,但是引用类型的对象位于堆中。
That means a reference type can have a null pointer, but a value type cannot have a null value.
这意味着引用类型可能有空指针,但是数值类型不能有空值。
In an unsafe context, a type may be a pointer type as well as a value type or a reference type.
在不安全的上下文中,类型可以是指针类型以及值类型或引用类型。
Two variables of a value type are equal if they are the same type and they contain the same contents.
两个值类型的变量在它们的类型和内容都是相同时,它们应该是相等的。
Notice that the constraint specifies that the generic type can only be instantiated with a value type.
请注意,该约束指定泛型类型只能使用值类型进行实例化。
Whether a data type is a value type or a reference type, the communicating parties could also pose problems.
无论数据类型是数值类型还是引用类型,信息传递的一方都可能出现问题。
Throws a more meaningful exception when calling UniqueResult() with a value type and the query returns null.
当带一个值类型调用UniqueResult()和查询返回null时抛出更有意义的异常
We've seen some internal code where making it inline (ie, as a value type) improved perf as it decreased working set.
我们看到过很多内部代码,使用值类型来提高性能,同时减小工作集大小。
This can lead to a problem if the XSD type is mapped to a value type in one language but mapped to a reference type in another.
如果xsd类型在一种语言中被映射成了数值类型,而在另一种语言中被映射成了引用类型,那么这可能导致问题的出现。
Defines a generalized type-specific comparison method that a value type or class implements to order or sort its instances.
定义一种特定于类型的通用比较方法,值类型或类通过实现此方法对其实例进行排序。
If the statement makes indirect access through a value type (usually a structure), create a variable to hold the value type.
如果相应语句通过值类型(通常为结构)进行间接访问,请创建一个变量来保存值类型。
I would think any property whose data type is not a value type (or has value-type semantics) should not be copied in this way.
我想任何属性数据类型的是不是值类型(或值类型语义)不应该这样复制。
Boxing a value type creates an object and performs a shallow copy of the fields of the specified value type into the new object.
对值类型进行装箱将创建一个对象并将指定的值类型的字段浅表复制到新对象中。
Defines a generalized comparison method that a value type or class implements to create a type-specific comparison method for ordering instances.
定义通用的比较方法,实值型别或类别会实作这个方法,以建立型别特有的比较方法来排序执行个体。
Similarly, when a value type is passed as an argument to a function, the function will create its own copy of the object, unless the function USES the.
同样,当值类型作为参数传递给函数时,函数将创建自己的对象副本,除非函数使用。
In an entry, it contains the content such as text or HTML, with a type attribute value of text.
在一个条目中,它包含文本或html之类的内容,和一个文本的类型属性值。
The specification also treats every part of the document as a node consisting of a type and a value.
此规范还将文档的每一部分当成由一个类型和一个值组成的节点来对待。
Node types are returned as integers, and allow you to handle each node appropriately; an element (type 1) has a name, but no value, whereas a text node (type 3) has a value but no name.
节点类型以整数返回,并且允许您适当地处理每一个节点;一个元素(类型1)有名称没有值,但是一个文本节点(类型3)有值没有名称。
To cache the records from the alternate source, you need a cache per value type returned.
要缓存这些来自备用源的记录,您需要为返回的每种值类型设置一个缓存。
Single item concept — An item in the assembly data model describes a single primitive value that corresponds to a primitive type.
单项概念 —程序集数据模型中的一个项目描述一个与原始类型对应的原始值。
This is useful when the return value has a complex type because the type of the variable is automatically generated.
当返回值的类型很复杂时,这个重构将很有用,因为变量的类型是自动生成的。
The FROM SQL clause defines the specific function that will be used to transform a value to a built-in data type value representing the structured type.
FROMsql子句定义了特定的函数,可以使用该函数将将一个值转换成表示结构化类型的内置数据类型。
If the variable is a primitive type, the metric directly holds its value; if it is a complex type, the metric holds its XML.
如果变量是原语类型,指标直接包含其值;如果它是一种复杂类型,指标将包含它的XML。
The specification also treats every part of the document as a node, consisting of a type and a value.
该规范同样将文档的每个部分看成由类型和值组成的节点。
It also has a list of the import errors, such as when a value was the wrong type for a column.
它也具有一个导入错误列表,比如说一个值的类型与某一列不符。
Next, you create a value binding to get the type that is being bound to a particular component.
下一节,您将创建值绑定,以获得绑定到特殊组件的类型。
The type of any given property is fixed, and if a value of a different type is assigned, it will be converted.
任何给定属性的类型都是固定的,若指派的值类型不同,将予以转换。
A type property value of 0 references a Refresh Response, and a type property value of 1 references a Request Response.
类型属性值为0的称为刷新响应,类型属性为1的称为请求响应。
应用推荐