Example #1
0
 public static void WriteArrayLine <T>(this FormattedStreamWriter writer, T[] array, int n, string format = "{0}", string separator = " ")
 {
     for (int i = 0; i < n; ++i)
     {
         if (i > 0)
         {
             writer.Write(separator);
         }
         writer.Write(format, array[i]);
     }
     writer.WriteLine();
 }
Example #2
0
 public static void WriteArrayLine <T>(this FormattedStreamWriter writer, T[] array, string format = "{0}", string separator = " ")
 {
     writer.WriteArrayLine(array, array.Length, format, separator);
 }