C# Programming - Enumerations - Discussion

Discussion Forum : Enumerations - General Questions (Q.No. 16)
16.
Which of the following statements is correct about an enum used in C#.NET?
enum is a reference type.
enum is a value type.
Whether it a value type or a reference type depends upon size.
Whether it a value type or a reference type depends upon a Project Setting made in Visual Stiiclio.NET.
We can programmatically control whether it is a value type or a reference type.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

Raj said:   5 years ago
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:

Your comments will be displayed after verification.