itemID = (MyEnumType)results.value("itemID").toInt();
public enum Country { Bangladesh = 1, India = 2 } public static void Main(string[] args) { Country e = Country.Bangladesh; int x = (int) e; Country e2 = (Country) x; Console.ReadKey(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)