In C# we can convert an enum to an int by static typecasting as shown below:
int res = (int)myEnum;
Is any other way to do this conversion?
In C# we can convert an enum to an int by static typecasting as shown below:
int res = (int)myEnum;
Is any other way to do this conversion?