Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Enumerate an enum?
//Title of this code //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 enum Suit { Spades, Hearts, Clubs, Diamonds } public static void Main(string[] args) { foreach (Suit suit in Enum.GetValues(typeof(Suit))) { //Your code goes here Console.WriteLine(suit); } } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
program
k
Create id
Generic Reference constraint
23
Test
Golden Ratio Approximation
sum 2
convert String To Guid
reverse array
stackse - search stackoverflow differently
Please log in to post a comment.