I'm not sure why there is compiler error, Argument 1 Cannot convert 'void' to 'string'
, where as there is no casting happening. Below code creates a list of methods:
void FunctionList(string srcBucket, List<List<string>> pdfFileList, IAmazonS3 s3client)
{
List<Action> actions = new List<Action>();
foreach (var list in pdfFileList)
list.Add(RenameFilesAsync(srcBucket, list, s3client).Wait()); // Getting error here
}
public async Task RenameFilesAsync(string srcBucket, List<string> pdfFiles, IAmazonS3 s3client)
{
//Some code here
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…