public class WrongProperty
{
private string _RequestType;
public enum ActionType
{
CreateSO,
ApproveSO,
PostToShipSO,
VoidSO
}
public ActionType EventType
{
get
{
return (ActionType)Enum.Parse(typeof(ActionType), RequestType);
}
set
{
RequestType = value.ToString();
}
}
public string RequestType
{
get
{
if (this._RequestType == null)
{
this._RequestType = EventType.ToString();
}
return this._RequestType;
}
set
{
_RequestType = value;
}
}
}