Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

int value from enum in C#

public enum Question
{
    Role = 2,
    ProjectFunding = 3,
    TotalEmployee = 4,
    NumberOfServers = 5,
    TopBusinessConcern = 6
}

int something = (int) Question.Role;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #int #enum
ADD COMMENT
Topic
Name
3+6 =