Hi,
I have method:
var listOfFiles=service .GetFiles(pathsOfFiles.ToArray();
service is my wcf service with streaming ,and I want to have method on this service like :
public List<Stream, file> GetFiles(string[] paths)
{
List<Stream, file> files =new List<Stream, file>
foreach(string path in pathsOfFiles)
{
files.add(path, new FileStream(filename, FileMode.Open))
}
return files
}
Now I have only method (which is below) which works fine, but I must convert it to function which I descibe on top.
public Stream GetData(string filename)
{
FileStream fs = new FileStream(filename, FileMode.Open);
return fs;
}
I must get from service paths to know what is the name of file