For reasons I want to wrap my enum in a class.
I also want create a method which returns the int representation of the enum but I can't seem to figure out how to return it.
see the ToInt property, how to I return an int representation of the enum they are currently using?
e.g. if the caller has an enum instance version of value "Previous" then they can call version.ToInt and get the in of 2.


Code:
public class RowVersion
    {
        public int ToInt
        {
            get { return (int)RowVersion; }
        }
        public static RowVersion Original
        {
            get { return RowVersionEnum.Original; }
        }
        public static RowVersion Current
        {
            get { return RowVersionEnum.Current; }
        }
        public static RowVersion Previous
        {
            get { return RowVersionEnum.Previous; }
        }
        enum RowVersionEnum
        {
            Original = 0,

            Current = 1,

            Previous = 2,
        }
    }