Answers for "enum value to string"

1

enum value to string

class Program.
static void Main(string[] args)
{
   Enum wkday = Weekday.Friday;
   Console.WriteLine("Enum string is '{0}'", wkday.ToString());
   Console.ReadKey();
}
Posted by: Guest on February-23-2021

Browse Popular Code Answers by Language