应该对枚举类型使用这些方面吗?
使用枚举类型的基本概念很简单。
category属性是枚举类型。
The category attribute is an enumerated type. It's one of the following.
这就是枚举类型的简单性。
“图书”这个类拥有一项枚举类型的属性。
The Book class has an attribute whose type is that of an enumeration.
枚举类型使我们能够从多项选项中选择一个值。
The enumerated types enable us to select one value from multiple options.
支持枚举类型。
枚举类型的属性集的值,可以被枚举列出。
The values for attributes whose type is an enumeration would be enumeration literals owned by that enumeration.
我怎么可以指定枚举类型的值给一个变量?
解决方案3:创建一个模式,并与原始枚举类型结合。
Solution 3: Create a pattern, and combine it with the original enumerated type.
LotteryFactory有彩票的各种枚举类型。
The LotteryFactory has an enum of the different types of lotteries.
为此,我们需要一个枚举类型,表示我们想要的。
枚举类型是一种有效取值仅限于一组常量的类型。
An enumerated type is one that has valid values limited to a set of constants. For instance, an enumeration may be defined for the colors of a stop light as follows.
此外,枚举类型支持拥有构造函数、实例方法和变量,等等。
In addition, enumerated types support having constructors, instance methods, and variables, among other things.
这些节点代表了具体的标识符,如函数名称、变量及枚举类型。
These represent specific identifiers, such as the names of functions, variables, and enumerated types.
我可以创建一个模板偏特化的类模板的匹配枚举类型?
Can I create a partial template specialization of of a class template matching enumeration types?
以及任何基于符合CLS的基础整数类型的枚举类型。
And any enumeration type based on a CLS-compliant base integer type.
一些数据元素必须使用一组约束的值(程序员称之为枚举类型)。
Some data elements are meant to have a set of constrained values (enumeration types as programmers would call them).
位于枚举类型定义之后的main方法演示了这种用法。
The main method following the enumerated type definition demonstrates the usage.
例如,它认为在我正在使用枚举类型,而实际上只不过是CDATA。
For example, it believed I was using an enumerated type where there was really just CDATA.
这个概念正在深入到将枚举类型的每个元素作为一个子类对待的领域。
This concept is getting more into the area of treating each element of an enumerated type as a subclass.
这样一个类型被称为枚举类型,它所包含的值被称为枚举值。
Such a type is called an enumerated type, and the values it contains are called enumerations.
类似地,将NaN包含在枚举类型中也不会使其接受nan值。
Similarly, including NaN in an enumeration does not make it accept NaN values.
枚举类型,定义在概要文件中,或者在一个导入的概要文件中。
Enumerations defined in the profile itself, or in an imported profile.
该枚举类型的values方法返回这种类型的不同值的有序数组。
The values method of the enumerated type returns an ordered array of the different values of that type.
如何解决“实体LINQ支持铸造加工的原始或枚举类型。”错误?
How to solve "LINQ to Entities only supports casting EDM primitive or enumeration types." error?
或者说,在一个拥有枚举类型Size变量的类中做这些更有意义吗?
Or, does that make more sense in a class that has a variable of enum type Size?
构造型的属性,不管是逻辑值、整数值还是枚举类型的,都在概述中被分配有默认值。
The stereotype properties, which are of Boolean, integer, or enumeration types, have been assigned default values in the profile.
翻译单元中只能有任何变量,函数,类类型,枚举类型或模板的唯一定义。
No translation unit shall contain more than one definition of any variable, function, class type, enumeration type or template.
迄今为止,您所看到的示例都相当简单,但是枚举类型提供的东西远不止这些。
The examples you've seen so far have been rather simple, but enumerated types offer much more.
应用推荐