Use StreamWriter.Dispose() instead of Close()

This commit is contained in:
Sergei Vorobev
2016-11-15 14:49:39 -08:00
parent df6662aa2e
commit 666bf887d7
@@ -1701,7 +1701,7 @@ namespace System.Management.Automation
// streamWriter is present, only if we call Start method
if (_streamWriter != null)
{
_streamWriter.Close();
_streamWriter.Dispose();
_streamWriter = null;
}
}