예제 #1
0
파일: BlogApp.cs 프로젝트: zuhuizou/wojilu
        public BlogSetting GetSettingsObj()
        {
            if (strUtil.IsNullOrEmpty(this.Settings))
            {
                return(new BlogSetting());
            }
            BlogSetting s = Json.Deserialize <BlogSetting>(this.Settings);

            s.SetDefaultValue();
            return(s);
        }
예제 #2
0
        public BlogSetting GetSettingsObj()
        {
            if (strUtil.IsNullOrEmpty(this.Settings))
            {
                return(new BlogSetting());
            }
            BlogSetting s = JSON.ToObject <BlogSetting>(this.Settings);

            s.SetDefaultValue();
            return(s);
        }