コード例 #1
0
 private Task ReadFile(FileSystemInfo myFile)
 {
     return(Task.Run(() => ReadData.Add(new FileClientContents
     {
         FileName = myFile.Name,
         FileContents = FileReader.ReadFileToString(myFile.FullName)
     })));
 }