1
Answer

enum int without casting

Avinash reddy

Avinash reddy

8y
322
1
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)