public Int32 Insert(String ruleText, Int32 index) { var rule = Parser.ParseRule(Owner, ruleText); _rules.Insert(index, rule); rule.SetParent(this); return(index); }
public Int32 Insert(String ruleText, Int32 index) { var parser = _context.GetService <ICssParser>(); var rule = parser.ParseRule(this, ruleText); _rules.Insert(index, rule); rule.SetOwner(this); return(index); }