Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

loop over enum values

var values = Enum.GetValues(typeof(EnumName));

foreach (var value in values)
{
	Combobox.Items.Add(value.ToString());
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #enum #values
ADD COMMENT
Topic
Name
9+2 =