Default Marshaling for Value Types.
值类型的默认封送处理。
Value types and structures can be declared nullable.
可以将值类型和结构声明为可以为空。
Distinguish Between Value Types and Reference Types.
区别值类型数据和引用类型数据。
Structs are value types and classes are reference types.
结构为实值型别,而类别则是参考型别。
Variables that are based on value types directly contain values.
基于值类型的变量直接包含值。
Avoid generic containers in combination with value types, including structs.
避免泛型容器与结构等类型相结合。
For information about default values of value types, see default values Table.
有关值类型的默认值的信息,请参见默认值表。
In managed code, value types and reference types are not permitted to overlap.
在托管代码中,值类型和引用类型不允许重叠。
So people ask how you decide when to use value types and when to use reference types.
所以人们会问,你如何决定什么时候使用值类型,什么时候使用引用类型。
Structs are value types which means they are copied when they are passed around.
结构是值类型,这意味着当他们被传来传去,他们被复制。
Explicitly implementing a member can also cause unnecessary boxing of value types.
显式实现成员还会导致对值类型的不必要装箱。
NET programmers must be aware of: primitive types, reference types, and value types.
Net开发者都必须了解的原始类型,引用类型和值类型。
The default value of an uninitialized enumeration, just like other value types, is zero.
像其他值类型一样,未初始化枚举的默认值为零。
Describes how the export process converts classes, interfaces, value types, and enumerations.
描述导出过程如何转换类、接口、值类型和枚举。
The following table shows the default values of value types returned by the default constructors.
下表显示了由默认构造函数返回的值类型的默认值。
Discusses how implicit boxing of value types translates to a tracking handle to the boxed value object.
讨论值类型的隐式装箱转换为装箱的值对象的跟踪句柄的方式。
As you know value types are allocated on the stack unlike reference types which are allocated on the GC heap.
就像你知道的那样,值类型是分配在栈上的,而引用类型是分配在GC堆上的。
We'll discuss the difference between reference and value types in the section called "the Scala type Hierarchy".
我们会在“scala类型结构”章节讨论引用类型和值类型的区别。
Value types do not support derived types, so you do not need to defend against derived types modifying fields.
值类型不支持派生类型,因此不需要对派生类型会修改字段的情况做出防卫。
Incompatibilities can arise when, for example, two interfaces define the same method with different return value types.
在某些情况下可能出现不兼容,例如两个接口使用不同的返回值类型定义同一个方法。
Variables that are value types store data, and those that are reference types store references to the actual data.
值类型的变量存储数据,而引用类型的变量存储对实际数据的引用。
Because structures, also known as value types, can appear on the stack, it is not always possible to create a pointer to them.
因为结构,也就是通常所说的值类型,可以被用在堆栈里,并不能总是为它们创建一个指针。
When comparing two values of channel type, the channel value types must be compatible but the channel direction is ignored.
在比较两个通道的值的时候,通道的值类型要求是兼容的,但是方向会被忽略。
For tuning collections of value types, Section 20.5 "Understanding collection Performance" in HRD [1] already has good coverage.
对于值类型集合的调优,hrd[1]中的20.5节“理解集合性能”已经做了很好的阐述。
The following illustration shows the default marshaling behavior of value types and reference types with parameter modifiers.
下面的插图显示具有参数修饰符的值类型和引用类型的默认封送处理行为。
Do define an interface if you need some common functionality to be supported by a set of types that includes some value types.
如果一组包含某些值类型的类型需要支持某些常用功能,则必须定义接口。
Are classes declared as value types only infrequently used as method parameters, returned from methods or stored in Collections?
值类型的类用于参数,方法返回值以及存放在集合中?
Because structures are value types, changes that the asynchronous process makes do not change the members of the original structure.
因为结构是实值型别,所以非同步处理序所做的改变不会改变原始结构的成员。
Collections can either model value types (element or composite-element) or entity reference types (one-to-many or many-to-many associations).
集合可以是值类型的(元素或组合元素),也可以是实体引用类型的(one - to -many或many - to - many关联)。
But, here's a warning: Things get a little trickier when dealing with a lot of value types, so here are some issues to take into consideration.
但是,必须提醒:当处理许多值类型时,事情会变得比较麻烦,因此需要考虑以下问题。
应用推荐