Initial work on implementing Pokemon
This commit is contained in:
7
PkmnLib.Static/Utils/EnumerableHelpers.cs
Normal file
7
PkmnLib.Static/Utils/EnumerableHelpers.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace PkmnLib.Static.Utils;
|
||||
|
||||
public static class EnumerableHelpers
|
||||
{
|
||||
public static IEnumerable<T> WhereNotNull<T>(this IEnumerable<T?> enumerable) where T : class =>
|
||||
enumerable.Where(x => x is not null)!;
|
||||
}
|
||||
Reference in New Issue
Block a user