We have one enum
enum ContractType
{
Permanent = 1,
Contract = 2,
Internship = 99
}
Below function for convert enum to hashtable
public static Hashtable BindToEnum(Type enumType)
{
// get the names from the enumeration
string[] names = Enum.GetNames(enumType);
...