我看到有要素。但是它没有添加到该对象中,我看到名称和字节为空...
var req = new Details()
{
Saver= new List<SaverDetails>()
{
new SaverDetails()
}
};
foreach (var t in files.ToList())
{
req.Saver.Add(
new SaverDetails()
{
Name= Path.GetFileName(t),
bytes = File.ReadAllBytes(t)
});
}