예제 #1
0
        /// <summary>
        /// 添加 css列表
        /// </summary>
        /// <param name="css"></param>
        /// <returns></returns>
        public CssBuild Add(IList <string> css, bool condition = true)
        {
            if (!condition)
            {
                return(this);
            }
            var list = CssAdd.Union(css).ToList();

            CssAdd.Clear();
            CssAdd.AddRange(list);
            return(this);
        }
예제 #2
0
 public CssBuild Reset()
 {
     CssAdd.Clear();
     CssRemove.Clear();
     return(this);
 }