I was going to use a cool piece of reflection code but just a simple Convert.ToInt32
works great… Forgive my VB I’m a C# guy
Public Function GetEnumInt(Of T)(enumVal As T) As Integer
Return Convert.ToInt32(enumVal)
End Function
I was going to use a cool piece of reflection code but just a simple Convert.ToInt32
works great… Forgive my VB I’m a C# guy
Public Function GetEnumInt(Of T)(enumVal As T) As Integer
Return Convert.ToInt32(enumVal)
End Function