Clean up after last PR

This commit is contained in:
Tyrrrz
2026-02-27 17:30:06 +02:00
parent 532470e3db
commit b660edfe78
7 changed files with 69 additions and 72 deletions

View File

@@ -24,4 +24,17 @@ public static class CollectionExtensions
}
}
}
extension<T>(IEnumerable<T?> source)
where T : struct
{
public IEnumerable<T> WhereNotNull()
{
foreach (var o in source)
{
if (o is not null)
yield return o.Value;
}
}
}
}