Search
Setup for Free
C
C#
•
2y ago
Sander
reccomendations for learning how to work with streams.
Im trying to dive deeper into how streams work in C
# but i find it hard to jugde what source is a good source to learn from
. does anyone have good reccomendations
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,155
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
J
Jimmacle
•
3/13/24, 9:54 PM
the official documentation is a good place to start
https://learn.microsoft.com/en-us/dotnet/api/system.io.stream?view=net-8.0
Stream Class (System.IO)
Provides a generic view of a sequence of bytes
. This is an abstract class
.
J
Jimmacle
the official documentation is a good place to start https://learn.microsoft.com/...
S
Sander
OP
•
3/13/24, 10:19 PM
thanks
S
Sander
Im trying to dive deeper into how streams work in C# but i find it hard to jugde...
M
Mayor McCheese
•
3/13/24, 10:21 PM
You can start with MemoryStreams and use a predictable set of data and see how it
's read and how streaming api
's typically work
.
M
Mayor McCheese
•
3/13/24, 10:22 PM
https://learn.microsoft.com/en-us/dotnet/api/system.io.memorystream?view=net-8.0
MemoryStream Class (System.IO)
Creates a stream whose backing store is memory
.
M
Mayor McCheese
•
3/13/24, 10:23 PM
There
's a note about IDisposable in the middle of that page btw
, you should totally ignore it
.
M
Mayor McCheese
There's a note about IDisposable in the middle of that page btw, you should tota...
S
Sander
OP
•
3/13/24, 10:24 PM
so i should dispose of memory streams
?
J
Jimmacle
•
3/13/24, 11:00 PM
for memory streams there
's nothing to dispose
, the backing store is just an array
J
Jimmacle
•
3/13/24, 11:06 PM
other kinds of streams like network streams may be holding onto other resources like a socket that need to be disposed
S
Sander
so i should dispose of memory streams?
M
Mayor McCheese
•
3/14/24, 1:41 PM
There
's no consequence to not disposing of memory streams
, but it
's a bad practice to not dispose streams
; there
's also no reason not to
.
Similar Threads
Reccomendations for starter/intermediate c# projects
C
C# / help
12mo ago
Learning how to test API with NUnit and Nsubstitute
C
C# / help
2y ago
How to work better with records
C
C# / help
2y ago
Streams
C
C# / help
2y ago