C# Compiler Error
CS0076 – The enumerator name ‘value__’ is reserved and cannot be used
Reason for the Error
You will receive this error when you are using value__ as an identifier with-in the enum in C#.
For example, try compiling the below code.
enum EmploymentType { value__ =1 } public class DeveloperPublish { public static void Main() { } }
You will receive the below error as value__ is a reserved word and cannot be used as identifier in enumeration in C#.
Error CS0076 The enumerator name ‘value__’ is reserved and cannot be used.
Solution
To fix the error CS0076 in C#, ensure that the enumerator doesn’t have an identifier value__ and use a different identifier name.