Answers for "c# get enum description by value"

C#
1

c# get enum name from value

string name=(weekdays)2;//returns weekdays which has value 2.Here weekdays is enum name
Posted by: Guest on March-03-2021
0

c# get value of object in enum

arrayName variable = (arrayName) index
//for example
Days day = (Days)3;
Posted by: Guest on May-17-2020

C# Answers by Framework

Browse Popular Code Answers by Language