GroupBy
constraintNewList = constraintNewList.GroupBy(x => new { x.ConstraintType, x.StDate}).Select(s => s.FirstOrDefault(t => t.CreateTime == s.Max(p => p.CreateTime))).ToList();
GroupBy
constraintNewList = constraintNewList.GroupBy(x => new { x.ConstraintType, x.StDate}).Select(s => s.FirstOrDefault(t => t.CreateTime == s.Max(p => p.CreateTime))).ToList();