Answer: 'VB.Net
Dim enum_obj As Active_Inactive
Dim value As Integer = 1
enum_obj = CType(value,Active_Inactive)
MasBox(enum_obj.ToString())
//C#
Active_Inactive enum_obj;
int value = 1;
enum_obj = (Active_Inactive)value;
MessageBox.Show(enum_obj.ToString());
Asked In: Many Interviews |
Alert Moderator