Apply enforced file scoped namespacing
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
namespace SPTarkov.Server.Core.Extensions
|
||||
{
|
||||
public static class UtilityExtensions
|
||||
{
|
||||
public static IEnumerable<T> IntersectWith<T>(this IEnumerable<T> first, IEnumerable<T> second)
|
||||
{
|
||||
//a.Intersect(x => b.Contains(x)).ToList();
|
||||
// gives error Delegate type could not be inferred
|
||||
namespace SPTarkov.Server.Core.Extensions;
|
||||
|
||||
return first.Where(second.Contains);
|
||||
}
|
||||
public static class UtilityExtensions
|
||||
{
|
||||
public static IEnumerable<T> IntersectWith<T>(this IEnumerable<T> first, IEnumerable<T> second)
|
||||
{
|
||||
//a.Intersect(x => b.Contains(x)).ToList();
|
||||
// gives error Delegate type could not be inferred
|
||||
|
||||
return first.Where(second.Contains);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user