Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to iterate through an enum
DictEnum dictEnum = new DictEnum(enumNum(ProjFundingType));
if (dictEnum)
int enumValueCount = dictEnum.values();
//Iterate on positions, not values!!
for (int enumValueIndex = 0; enumValueIndex < enumValueCount; enumValueIndex++)
if (dictEnum.index2Value(enumValueIndex) != ProjFundingType::Customer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.