1
Reply

enum int without casting

Avinash reddy

Avinash reddy

May 12 2016 2:54 PM
302
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)