Esempio n. 1
0
 /// <summary>
 /// Writes the content of the <paramref name="writeable"/> to the <paramref name="stream"/> with indent context.
 /// </summary>
 /// <param name="writeable">The writeable that should be written to the <paramref name="stream"/>.</param>
 /// <param name="stream">The target of the <paramref name="writeable"/>.</param>
 public static void Write(this IContextWriteable writeable, Stream stream)
 {
     using (ContextStreamWriter sw = new ContextStreamWriter(stream)) {
         writeable.Write(sw);
     }
 }
 /// <summary>
 /// Writes the content of the <paramref name="writeable"/> to the <paramref name="stream"/> with indent context.
 /// </summary>
 /// <param name="writeable">The writeable that should be written to the <paramref name="stream"/>.</param>
 /// <param name="stream">The target of the <paramref name="writeable"/>.</param>
 public static void Write(this IContextWriteable writeable, Stream stream)
 {
     using (ContextStreamWriter sw = new ContextStreamWriter (stream)) {
         writeable.Write (sw);
     }
 }