网摘 |  收藏 | 

静态方法List

 public class Country
    {
        public static List<Country> CountryList = new List<Country> { 
            new Country{Name = "US"},
            new Country{Name = "Canada"},
            new Country{Name = "Mexico"}
        };

        public string Name { get; set; }
    }

 

posted @ 2014-09-17 15:00  xulonghua219  阅读(676)  评论(0编辑  收藏  举报