Creating enum from dynamic array

I have a scenario where I need to create an enum array from a dynamic array.
But I am not able to quite get it correctly.
Any other data type which is preferable in this case?

Can you show us what you mean?

Terms of Service

Privacy Policy

Cookie Policy