Helper methods extensions (#431)

* Remove unused model

* Start moving methods to extensions, cleanup code
This commit is contained in:
Jesse
2025-06-28 13:14:50 +02:00
committed by GitHub
parent a3dbd3176e
commit 22c71bee5b
20 changed files with 248 additions and 276 deletions
@@ -0,0 +1,13 @@
namespace SPTarkov.Server.Core.Extensions
{
public static class UtilityExtensions
{
public static List<T> IntersectWith<T>(this List<T> first, List<T> second)
{
//a.Intersect(x => b.Contains(x)).ToList();
// gives error Delegate type could not be infered
return first.Where(x => second.Contains(x)).ToList();
}
}
}