Пример #1
0
 public CssDocument Parse()
 {
     if (doc != null) return doc;
     List<CssRule> list = new List<CssRule>();
     while (!over)
     {
         var r = NextRule();
         if (r != null)
         {
             list.Add(r);
         }
     }
     doc = new CssDocument(list, encoding);
     return doc;
 }
Пример #2
0
        public CssDocument Parse()
        {
            if (doc != null)
            {
                return(doc);
            }
            List <CssRule> list = new List <CssRule>();

            while (!over)
            {
                var r = NextRule();
                if (r != null)
                {
                    list.Add(r);
                }
            }
            doc = new CssDocument(list, encoding);
            return(doc);
        }