Here is the basic situation.
Public Class MyEnumClass(of T) Public MyValue as T End Class
This is vast oversimplification of the actual class, but basically I know that T is an enumeration (if it is not then there will be many other problems, and is a logical error made by the programmer)
Basically I want to get the underlying integer value of MyValue.
Using Cint or Ctype, does not work.
I was going to use a cool piece of reflection code but just a simple
Convert.ToInt32works great… Forgive my VB I’m a C# guy