Documentation must state that TEnum does not work on enumeration types with explicitly assigned ordinality

Issue #103 closed
Former user created an issue

This might be common knowledge to Delphi wizards, but I believe the documentation of Spring.SystemUtils.TEnum should state that although it compiles fine, you cannot work on enumeration types like the following: TSomeEnum = ( uno=1, dos=2, tres=3);

TEnum.IsValid<T>(..) will raise a runtime exception since System.TypeInfo(T) returns nil for TSomeEnum.

I believe this is important and should be added to the documentation

Comments (3)

  1. Log in to comment