End Broker

This commit is contained in:
2019-04-24 19:27:40 +02:00
parent a1e1d43a6f
commit e3cc6392a7
12 changed files with 518 additions and 23 deletions

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace PlantBox.Broker
{
public static class Extensions
{
public static IEnumerable<T> TakeFromEnd<T>(this List<T> list, int count)
{
return list.GetRange(list.Count - count, count);
}
}
}