Answers for "int value from enum in C#"

C#
0

int value from enum in C#

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

int something = (int) Question.Role;
Posted by: Guest on July-01-2021

C# Answers by Framework

Browse Popular Code Answers by Language