I have a class called Questions (plural). In this class there is an enum called Question (singular) which looks like this.
Questions
Question
public e
Use an extension method instead:
public static class ExtensionMethods { public static int IntValue(this Enum argEnum) { return Convert.ToInt32(argEnum); } }
And the usage is slightly prettier:
var intValue = Question.Role.IntValue();