Ejemplo n.º 1
0
 public static string ConvertStringAndClose(this StreamWriter input)
 {
     input.Flush();
     using (StreamReader sr = new StreamReader(input.BaseStream))
     {
         return(sr.ConvertString());
     }
 }