Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
EnumToList
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { var list = Enum.GetValues(typeof(EnumExample)).Cast<EnumExample>(); foreach(var x in list) { Console.WriteLine(x.ToString()); Console.WriteLine((int)x); } } } public enum EnumExample { ValueA = 1, ValueB = 2, ValueC = 3 } }
run
|
edit
|
history
|
help
0
Test3
Addition
abc
Sum of digit using recursion
concurrentStack
Overriding fields
Watch Jurassic World Dominion Online Free
sdcsvdfcsc
Uri builder
Const