Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Loop through enum C#

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