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
v v
extrefGenerate
Hallo world
Creating async methods in C# prior to version 5.0
Linq-Where-Condition on a collection of anonymous types
const
MockTest
Polygon Util
sintildes
Regex fórum 01