public void WriteSentence(SentenseInfo sentense) { var resLine = Enumerable.Repeat("Sentence " + _number, 1).Concat(sentense.Words); _writer.WriteLine(string.Join(", ", resLine)); _number++; }
public void WriteSentence(SentenseInfo sentense) { _writer.WriteStartElement("sentence"); foreach (var word in sentense.Words) { _writer.WriteElementString("word", word); } _writer.WriteEndElement(); }