added new stuff! :D
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace SptCommon.Extensions;
|
||||
|
||||
public static class ListExtensions
|
||||
{
|
||||
public static List<T> Splice<T>(this List<T> source, int index, int count)
|
||||
{
|
||||
var items = source.GetRange(index, count);
|
||||
source.RemoveRange(index,count);
|
||||
return items;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user