给定一个对象列表,其值为
StatusList = new List<StatusData>
{
new StatusData {Count = 0, Id = 1},
new StatusData {Count = 0, Id = 2},
new StatusData {Count = 1, Id = 3},
new StatusData {Count = 0, Id = 4},
new StatusData {Count = 2, Id = 5},
new StatusData {Count = 3, Id = 6},
new StatusData {Count = 0, Id = 7},
new StatusData {Count = 0, Id = 8},
new StatusData {Count = 0, Id = 2}
};
如何通过删除带有零的元素来修剪列表的左侧和右侧?