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
Below returns the Name of the enumvalue if the variable actionOn
string name = Enum.GetName(typeof(ActionOn), actionOn);