Пример #1
0
 /// <summary>
 /// Writes the text representations of objects in a collection concatenated by a delimiter to the current text writer as a single line.
 /// </summary>
 /// <param name="writer">A <see cref="TextWriter"/> object.</param>
 /// <param name="delimiter">The delimiter to concatenate text representations.</param>
 /// <param name="collection">The collection of objects whose text representations are to be concatenated.</param>
 public static void WriteLineWithDelimiter <T>(this TextWriter writer, char delimiter, IEnumerable <T> collection)
 {
     writer.WriteWithDelimiter(delimiter, collection);
     writer.WriteLine();
 }
Пример #2
0
 /// <summary>
 /// Writes the text representations of several objects concatenated by a delimiter to the current text writer as a single line.
 /// </summary>
 /// <param name="writer">A <see cref="TextWriter"/> object.</param>
 /// <param name="delimiter">The delimiter to concatenate text representations.</param>
 /// <param name="objs">The objects whose text representations are to be concatenated.</param>
 public static void WriteLineWithDelimiter <T>(this TextWriter writer, char delimiter, params T[] objs)
 {
     writer.WriteWithDelimiter(delimiter, objs);
     writer.WriteLine();
 }