I have a function that accepts an Enum (The base class) as a parameter:
public void SomeFunction(Enum e); However I can't for some reason cast it to int. I can get the name of the enumeration value but not it's integral representation.
I really don't care about the type of the enumeration, I just need the integral value. Should I pass an int instead? Or am I doing something wrong here?
(int)e, which gives "Cannot convert type 'System.Enum' to 'int'"