Answers for "c sharp enum ints"

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
1

enum in c#

enum Itemtype 
{
	Use,
    Loot,
    Equip,
    ETC
};
Posted by: Guest on October-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language