Well, let's say I would like to do something like this:
I hope this illustrates the problem...Code:enum Fruit {Apple, Orange, Banana} enum Vegetable {Onion, Carrot, Cabbage} string GetItemName(int Index, string category) { return ((category)Index).ToString(); } [/b]
I need to return "Cabbage" passing 2,"Vegetable" to the function




Reply With Quote