Avinash reddy

Avinash reddy

  • NA
  • 2
  • 2.3k

enum int without casting

May 12 2016 2:54 PM
Hi,
I want to know how to use enum int without casting.There is work around something like below
public static class Format
{ 
   public const int percentage= 1; 
   public const int text= 2;
   public const int number= 3;
} 
Is there any impact with using like these and can this be good practice?
 
 
 

Answers (1)