Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# foreach enum

enum Foos {
  Foo,
  Bar,
}

foreach(Foos val in Enum.GetValues(typeof(Foos))) {
  //Do whatever with the value :D
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #foreach #enum
ADD COMMENT
Topic
Name
9+8 =