需要根据一些var relativePath = Path.Combine(".","TestDir",fileName);
using (var sr = new StreamReader(relativePath))
{
//...
}
对List<Object>
进行排序
我的DTO以下
nested List<Object> property
需要根据public class WalletDetailsDTO {
private List<CreditDetailDTO> creditDetails;
}
public class CreditDetailDTO {
private String sectionType;
private BigDecimal totalAmount;
private List<SectionDetailsDTO> sectionDetails;
}
public class SectionDetailsDTO {
private String startDate;
private String expiryDate;
private BigDecimal amount;
}
List<CreditDetailDTO> creditDetails
属性对List<SectionDetailsDTO> sectionDetails
进行排序。