This example shows how to test enum list in compile time. It will compile error, if the enum list is not synced with look up table. You can add look up table in anywhere you want to use the enum list to ensure if someone adds a new entry of enum, he(she) should check the code which uses this enum.
npes87184 / exercise Goto Github PK
View Code? Open in Web Editor NEWPersonal exercise.