Skip to content
Discussion options

You must be logged in to vote

I suspect it depends on how it is read and whether the underlying buffer is rented from a pool and needs to be returned. My rule of thumb is to always dispose of anything disposable, except for MemoryStream.

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@LeaFrock
Comment options

@toupswork
Comment options

@gfoidl
Comment options

Answer selected by ladeak
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LeaFrock
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants