Refactoring

This commit is contained in:
hishamco
2020-09-30 00:07:00 +03:00
parent f83c1b1741
commit 2e2d46996a
10 changed files with 130 additions and 75 deletions

View File

@ -0,0 +1,8 @@
namespace System.Collections
{
public static class EnumerableExtensions
{
public static bool IsNullOrEmpty(this IEnumerable source)
=> source == null || source.GetEnumerator().MoveNext() == false;
}
}