Last post Sep 21, 2014 03:30 PM by wim sturkenboom
Member
166 Points
158 Posts
Sep 20, 2014 09:09 AM|shilpa.gururao|LINK
Hi All,
public enum ActionOn { Target = 0, Source }
public ActionOn actionOn { get; set; }
Now actionOn if assaigned with 1 it must return Source. How shall I achieve it?
Kindly help me.
Regards
Shilpa
Contributor
3054 Points
1018 Posts
Sep 21, 2014 03:30 PM|wim sturkenboom|LINK
Below returns the Name of the enumvalue if the variable actionOn
string name = Enum.GetName(typeof(ActionOn), actionOn);
Member
166 Points
158 Posts
Enum problem
Sep 20, 2014 09:09 AM|shilpa.gururao|LINK
Hi All,
public enum ActionOn
{
Target = 0,
Source
}
public ActionOn actionOn { get; set; }
Now actionOn if assaigned with 1 it must return Source. How shall I achieve it?
Kindly help me.
Regards
Shilpa
Shil
Contributor
3054 Points
1018 Posts
Re: Enum problem
Sep 21, 2014 03:30 PM|wim sturkenboom|LINK
Below returns the Name of the enumvalue if the variable actionOn