040be2feaa
Convert constructors into primary constructors Simplified logic with use of ??, ??= and method groups Cleaned up redundant conditional access qualifiers
14 lines
384 B
C#
14 lines
384 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 inferred
|
|
|
|
return first.Where(second.Contains).ToList();
|
|
}
|
|
}
|
|
}
|