I need to return a default enum from a function if it can't find the right one by description.
If I assume that the default enum is numbered 0, how can I do this?
VB won't let me convert 0 to T or even to GetType(T)
.
I have tried:
Return CType(0, T)
Return CType(0, GetType(T))
Return DirectConvert(0, T)
etc...
Thanks for any help!