4 Replies Latest reply on Jul 2, 2013 7:53 AM by gimbal2

    How to use Enum on Generic Type


      I am trying to create a class as generic type, that can only carry one of the values from an enum


      For. eg :

      Class Test<T>





      This T should only be either String or Integer


      How can I do this ?


      Thanks in advance.