Exemplo n.º 1
0
        public void WriteSentence(SentenseInfo sentense)
        {
            var resLine = Enumerable.Repeat("Sentence " + _number, 1).Concat(sentense.Words);

            _writer.WriteLine(string.Join(", ", resLine));
            _number++;
        }
Exemplo n.º 2
0
 public void WriteSentence(SentenseInfo sentense)
 {
     _writer.WriteStartElement("sentence");
     foreach (var word in sentense.Words)
     {
         _writer.WriteElementString("word", word);
     }
     _writer.WriteEndElement();
 }