mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-24 22:04:56 +00:00
20 lines
443 B
C#
20 lines
443 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PckStudio.Forms.Utilities
|
|
{
|
|
public static class ListUtils
|
|
{
|
|
public static IList<T> Swap<T>(this IList<T> list, int index1, int index2)
|
|
{
|
|
T temp = list[index1];
|
|
list[index1] = list[index2];
|
|
list[index2] = temp;
|
|
return list;
|
|
}
|
|
}
|
|
}
|