Some more info you may find usefule. If you dont know the underlying type of the enum you can get it with:
Type t = Enum.GetUnderlyingType(typeof(MyEnumValues));
And I got carried away, disregard what I said about float. Enums cannot be based on float. They can only be based on integral types: int, short, etc. They may be based on any integral type except char.
.NET Programming
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
Type t = Enum.GetUnderlyingType(typ
And I got carried away, disregard what I said about float. Enums cannot be based on float. They can only be based on integral types: int, short, etc. They may be based on any integral type except char.