Z
Zytan
I have an enum. I want a struct of data associated with each one.
Then, I could use the enum to access the data as needed. In other
words, I want the enum to represent more than just a unique integer.
I want it to represent a struct.
Is there a way to do this nicely?
Searching seems to say "no."
(Enum.GetValues(myenum).Length is not a constant, apparantly, which is
annoying, since I can't use it to *at least* size the array, unless I
want to create it dynamically, which would solve a portion of this
problem, but not all.)
Zytan
Then, I could use the enum to access the data as needed. In other
words, I want the enum to represent more than just a unique integer.
I want it to represent a struct.
Is there a way to do this nicely?
Searching seems to say "no."
(Enum.GetValues(myenum).Length is not a constant, apparantly, which is
annoying, since I can't use it to *at least* size the array, unless I
want to create it dynamically, which would solve a portion of this
problem, but not all.)
Zytan