Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

create enum from int c#

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

int something = (int) Question.Role;
Question something_else = (Question) something;
Source by exceptionnotfound.net #
 
PREVIOUS NEXT
Tagged: #create #enum #int
ADD COMMENT
Topic
Name
1+9 =