End Broker
This commit is contained in:
14
PlantBox.Broker/Extensions.cs
Normal file
14
PlantBox.Broker/Extensions.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user