c#枚举数字转枚举
Enumeration is used to assign the names to integral constants, which makes the program readable.
It is a reference data type.
Enumeration is not supported in C#
It is used only in VB.NET
Options:
Correct answer: 1
Only A
The only A statement is correct about the enumeration in C#.NET.
枚举用于将名称分配给整数常量,从而使程序可读。
它是参考数据类型。
C#不支持枚举
仅在VB.NET中使用
选项:
正确答案:1
只有一个
关于C#.NET中的枚举,唯一的A语句是正确的。
int
short
byte
float
double
Options:
Correct answer: 3
D and E
In C#.NET, we cannot use float or double data types as an underlying data type in the enumeration.
整型
短
字节
浮动
双
选项:
正确答案:3
D和E
在C#.NET中,我们不能将浮点或双 精度数据类型用作枚举中的基础数据类型。
Correct answer: 4
enum
In C#.NET, enum keyword is used to create an enumeration.
Correct answer: 2
No
No, we cannot inherit enum values in C#.NET.
Correct answer: 2
Value type
In C#.NET, enum is a value type.
翻译自: https://www.includehelp.com/dot-net/csharp-enumeration-aptitude-questions-and-answers-1.aspx
c#枚举数字转枚举