This method will get the currently set name from the MY_List property.
public enum ListType
{
enum1,
enum2,
enum3,
enum4,
enum5
}
private ListType _my_List;
public ListType My_List
{
get { return _my_List; }
set { _my_List = value; }
}
private string GetListName()
{
return Enum.GetValues(typeof(ListType)).Cast<ListType>().FirstOrDefault(x => x.ToString() == _my_List.ToString()).ToString();
}