C# Programming - Enumerations - Discussion

Discussion :: Enumerations - General Questions (Q.No.16)

16. 

Which of the following statements is correct about an enum used in C#.NET?

[A]. enum is a reference type.
[B]. enum is a value type.
[C]. Whether it a value type or a reference type depends upon size.
[D]. Whether it a value type or a reference type depends upon a Project Setting made in Visual Stiiclio.NET.
[E]. We can programmatically control whether it is a value type or a reference type.

Answer: Option B

Explanation:

No answer description available for this question.

Raj said: (Dec 3, 2019)  
The answer provided is wrong. Jon skeet says that enum is not a value type.
" All enums inherit from System.Enum. You can't inherit from a value type, therefore System.Enum can't be a value type."

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.