C# MemoryStream CanSeek
Description
MemoryStream CanSeek
Gets a value indicating whether
the current stream supports seeking.
Syntax
MemoryStream.CanSeek
has the following syntax.
public override bool CanSeek { get; }
Example
using System;/*from w ww .ja va 2s. c o m*/
using System.IO;
public class MainClass{
public static void Main(String[] argv){
MemoryStream ms = new MemoryStream();
System.Console.WriteLine(ms.CanSeek);
}
}
The code above generates the following result.