I have a class called Questions, in this class is an enum called question which looks like this.
public enum Question
{
Role = 2,
ProjectFunding = 3,
TotalEmployee = 4,
NumberOfServers = 5,
TopBusinessConcern = 6,
}
In the Question class I have a get(int foo) function that returns a Question object for that foo. Is there an easy way to get the integer value off the enum so I can do something like this Questions.Get(Question.Role)?