public static DocNode Parse(List<string> contentLines, List<string> errorLines) { DocNode node = new DocNode(); foreach (var line in contentLines) { try { node.Entities.AddRange(ParseLine(line)); } catch (ArgumentException ex) { errorLines.Add(string.Format("in \"{0}\", {1}", line, ex.Message)); } } return node; }
public static DocNode Parse(List <string> contentLines, List <string> errorLines) { DocNode node = new DocNode(); foreach (var line in contentLines) { try { node.Entities.AddRange(ParseLine(line)); } catch (ArgumentException ex) { errorLines.Add(string.Format("in \"{0}\", {1}", line, ex.Message)); } } return(node); }