Edit: I\'ve retitled this to an example as the code works as expected.
I am trying to copy a file, get a MD5 hash, then delete the copy. I am doing
Why not open the file with FileShare.ReadWrite?