get last n elements of list

This commit is contained in:
2026-07-28 11:21:58 +02:00
parent 9323ff1592
commit d296944f7f

View File

@@ -128,7 +128,9 @@ namespace BeWo.Service.ServiceUtils
if(sample_count == -1)
return dcs;
return dcs.Take(sample_count.Value);
var skip = Math.Max(0, dcs.Count - sample_count.Value);
return dcs.Skip(skip);
}
private static CompactCustomerDC loadCompactCustomerDC(Dictionary<TableID, long[]> context_reference)