Suppose there's a method which returns enum
. But it returns only a subset of all the values of the enumeration. Can I find out programmatically which values are obtainable?
Example. I have an enum
, which describes color with 100 values. Method GetCurrentTrafficLightsState
can return only 3 colors of 100. I want to pass the method GetCurrentTrafficLightsState
into some other method and get 3 colors as response.