Difficulty: Easy
Correct Answer: By default, the first enumerator has the value 0 (unless an explicit value is provided).
Explanation:
Introduction / Context:
Enums in C#.NET provide a named set of integral constants. Understanding their default underlying values, naming rules, and the compile-time constant requirement is essential.
Given Data / Assumptions:
Concept / Approach:
Members are sequentially numbered starting at 0 unless explicitly given a constant. Non-const variables are invalid at declaration, but values can be cast from database data at runtime.
Final Answer:
By default, the first enumerator has the value 0 (unless an explicit value is provided).
Discussion & Comments