I\'ve a enum class like,
public enum USERTYPE { Permanant=1, Temporary=2, }
in my business object I just declare this enum as
<
GetValues returns System.Array, but we know it's really a TEnum[] (that is a one-dimensional array indexed from zero) where TEnum is USERTYPE in your case. Therefore use:
GetValues
System.Array
TEnum[]
TEnum
USERTYPE
var allUsertypeValues = (USERTYPE[])Enum.GetValues(typeof(USERTYPE));