get last n elements of list
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user