Inspired by question from StackOverflow.
Lets say I declare enumeration type like
TFoo = (
One = -10,
Two = 5,
Three = 15);
Is there any way to
1) get the real count of values (3) instead of whole range from -10 to 15?
2) get the index of the value like GetIndex(TFoo.Two) = 1(2)?
3) and vice versa, associate 1(2) to TFoo.Two?
PS: TypeInfo(TFoo) does not compiled with error 'No type info for ...'.