mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
Move file stream dispose
This commit is contained in:
parent
b90eb4fd32
commit
95dbd59fcd
|
|
@ -75,11 +75,11 @@ finally
|
||||||
{
|
{
|
||||||
xml.Dispose();
|
xml.Dispose();
|
||||||
WriteLine("The XML writer's unmanaged resources have been disposed.");
|
WriteLine("The XML writer's unmanaged resources have been disposed.");
|
||||||
if (xmlFileStream != null)
|
}
|
||||||
{
|
if (xmlFileStream != null)
|
||||||
xmlFileStream.Dispose();
|
{
|
||||||
WriteLine("The file stream's unmanaged resources have been disposed.");
|
xmlFileStream.Dispose();
|
||||||
}
|
WriteLine("The file stream's unmanaged resources have been disposed.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -75,11 +75,11 @@ finally
|
||||||
{
|
{
|
||||||
xml.Dispose();
|
xml.Dispose();
|
||||||
WriteLine("The XML writer's unmanaged resources have been disposed.");
|
WriteLine("The XML writer's unmanaged resources have been disposed.");
|
||||||
if (xmlFileStream != null)
|
}
|
||||||
{
|
if (xmlFileStream != null)
|
||||||
xmlFileStream.Dispose();
|
{
|
||||||
WriteLine("The file stream's unmanaged resources have been disposed.");
|
xmlFileStream.Dispose();
|
||||||
}
|
WriteLine("The file stream's unmanaged resources have been disposed.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue