Check if the enum type is ulong
2 answers
Enum.GetUnderlyingType
returns an object of type Type
, so it really isn't ulong
, it's the type ulong
itself :)
Try the following:
if (checkValue == typeof(ulong))
+9
source to share