Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

enum loop

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: #enum #loop
ADD COMMENT
Topic
Name
4+8 =