I have the following constructor method which opens a MemoryStream from a file path:
MemoryStream
MemoryStream _ms; public MyClass(string filePath) { by
You can simply do:
var ms = new MemoryStream(File.ReadAllBytes(filePath));
Stream position is 0 and ready to use.