I use .net core 1.1, earlier, when I was with a .net framework, I usually call Close()
on FileStream
or any stream after stream operations have completed, but the FileStream
class in .net core 1.1 does not have a Close method, I found Dispose()
, but I donβt know if it is equivalent. Does anyone want to tell me the correct way to properly close the new FileStream/StreamWriter
class in the .net core?
source share