Get set

 public enum Vista
        {
            aaa, bbb
        }

        private Vista style = Vista.aaa;
                      // We set the initial value for style.
        public Vista Style
        {
            get { return style; }
            set { style = value; }
        }
get 中使用关键词 returnset 中使用关键词 value

posted @ 2009-09-12 23:13  greencolor  阅读(181)  评论(0编辑  收藏  举报