how to create dynamic enum and how to access that enum value directly.
Problem example:
enum Test{
RED,
GREEN
}
now i want to add Enum value BLUE dynamically and want to access it like Test.BLUE
kindly suggest solution.
how to create dynamic enum and how to access that enum value directly.
Problem example:
enum Test{
RED,
GREEN
}
now i want to add Enum value BLUE dynamically and want to access it like Test.BLUE
kindly suggest solution.