Created
August 31, 2013 10:36
-
-
Save jpluimers/6397446 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function EnumerationName(const Value: Integer; const Info: PTypeInfo): string; | |
//... | |
begin | |
if Info^.Kind <> tkEnumeration then | |
raise Exception.CreateFmt('Info %s is not an enumerated type', [GetTypeInfoName(Info)]); | |
//... | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment