c# - What is the difference of Stream and MemoryStream -


stream and MemoryStream What is the main difference in C #?

If I need to create a stream without a file, will I use MemoryStream instead?

< "post-text" itemprop = "text">

memorystream goes out of the normal class stream .

about from the stream :

provides a general view of the sequence of bytes. This is an abstract class.

So you can not create an example of stream . You must use one of the derivative classes, such as, etc.


Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -