I'm currently unable to iterate over my Enum values using the following code:
enum class Animals { Ducks, Giraffes, Hamster };
Array^ temp = Enum::GetValues(Animals::typeid);
Console::WriteLine("LENGTH = " + temp->Length);
for (int iter = 0; iter < temp->Length; iter++)
{
Console::WriteLine("ITER = " + iter);
}
It results in the following:
LENGTH = 0
I have followed the following documentation entry:
https://msdn.microsoft.com/en-us/library/system.enum.getvalues(v=vs.110).aspx
Thanks for your time