应该对枚举类型使用这些方面吗?
category属性是枚举类型。
The category attribute is an enumerated type. It's one of the following.
这就是枚举类型的简单性。
枚举类型使我们能够从多项选项中选择一个值。
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.
我怎么可以指定枚举类型的值给一个变量?
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.
对枚举来说,默认值是枚举类型定义中的第一个值。
For enums, the default value is the first value listed in the enum's type definition.
我可以创建一个模板偏特化的类模板的匹配枚举类型?
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.
对字符串的属性,增加了一个可选的枚举类型定义,枚举的属性值将被验证。
For properties of type string, an optional Enum definition has been added. Property values will be validated against the Enum.
为了明确这一点,清单3展示了TopicCategory枚举类型是如何实现的。
To make it clear, Listing 3 shows how to implement the TopicCategory enumerated type.
最终的结果是一个控件,提供了一个枚举类型或位作为一个运行组产生的按钮设定时间。
The final result is a control that presents an enum type, or a bit-set as a group of run-time generated buttons.
应用推荐