2008-12-12 14:12 作者:ning

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;
            }
        }

    }

推荐(0)
收藏

随机本博客日志

发表评论: