Skip to content

Commit

Permalink
reset stream position
Browse files Browse the repository at this point in the history
  • Loading branch information
woodp committed Feb 27, 2019
1 parent 7c50dc5 commit 044b7b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SynchronousIO/SynchronousIO/CreateFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static Stream Get(int numberOfCopies = DefaultNumberOfCopies)
// Therefore, the synchronous Write method is fine.
writer.Write(loremIpsum);
}

memoryStream.Position = 0;
return memoryStream;
}
}
Expand Down

0 comments on commit 044b7b8

Please sign in to comment.