Get the Integer value of an enumeration which is a generic

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)