C# MemoryStream MemoryStream()
Description
MemoryStream MemoryStream()
Initializes a new instance
of the MemoryStream class with an expandable capacity initialized to zero.
Syntax
MemoryStream.MemoryStream()
has the following syntax.
public MemoryStream()
Example
using System.IO;// w w w.jav a2 s .c om
using System;
public class MainClass{
public static void Main(String[] argv){
MemoryStream ms = new MemoryStream();
System.Console.WriteLine(ms.CanRead);
}
}
The code above generates the following result.