Well yes, there are several ways to do this, but you would need to do something like this:
class MyFile { public byte[] Data; public string FileName; } List<MyFile> files = GetFiles(); using (MemoryStream stream = new MemoryStream()) {
Where you should be able to understand the implementation of SaveFiles
and GetFiles
. I don't quite understand why you want to do this, though.
source share