SubmitUserInfoRequestDto responseDto = new SubmitUserInfoRequestDto() { id = item.NodeId, name = item.NodeName }; var userList = SMZX_ApprovalMember.GetList(item.NodeId); responseDto.child = userList.Select(x => new SubmitUserInfoRequestDto.Users() { value1 = x.DepartmentId.Value, value2 = x.MenberId.Value }).ToList();
标签:set,get,C#,list,SubmitUserInfoRequestDto,int,item,集合,public From: https://www.cnblogs.com/SmallChen/p/17568799.html
public class SubmitUserInfoRequestDto { public int id { get; set; } public string name { get; set; } public List<Users> child { get; set; } public class Users { public int value1 { get; set; } public int value2 { get; set; } } }