Throwing IO Related exception only on FileStream.Dispose(disposing:true) (#16250)
authorMaryam Ariyan <maryam.ariyan@microsoft.com>
Thu, 8 Feb 2018 06:55:11 +0000 (01:55 -0500)
committerJan Kotas <jkotas@microsoft.com>
Thu, 8 Feb 2018 06:55:11 +0000 (22:55 -0800)
commit5427b66d02cecd6990229744e4c9fb0dce9b7d3c
tree32cec1ce998aba36c3c456c41e26ceb36f2464bc
parent032edb4008ee041fe35377a6f2dcf4da138eb255
Throwing IO Related exception only on FileStream.Dispose(disposing:true) (#16250)

* Making Unix and Windows FileStream Dispose behavior more consistent and throwing IO related exception only on Dispose(true)

Fixes: #26734

* Commenting out SecurityException, also providing reason
src/mscorlib/shared/System/IO/FileStream.Unix.cs
src/mscorlib/shared/System/IO/FileStream.Windows.cs
src/mscorlib/shared/System/IO/FileStream.cs