I know its required in C, but I am not using C. By default in Delphi, the methods are static. This compiles fine.
class function GetStatus (AIdx : TStatus) : string;
class function GetStatusByChar (AChr : Char) : string;
class property Status [AIdx : TStatus] : string
read GetStatus;
class property Status_By_Char [AChr : Char] : string
read GetStatusByChar;
But to get rid of zillion of red tags from the LSP, I have to mark them as static
class function GetStatus (AIdx : TStatus) : string; static;
class function GetStatusByChar (AChr : Char) : string; static;