Answers for "how to assign enum value to int type variable in .net"

C#
1

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

Code answers related to "how to assign enum value to int type variable in .net"

C# Answers by Framework

Browse Popular Code Answers by Language