22c71bee5b
* Remove unused model * Start moving methods to extensions, cleanup code
14 lines
391 B
C#
14 lines
391 B
C#
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();
|
|
}
|
|
}
|
|
}
|