summaryrefslogtreecommitdiffstats
path: root/src/IOL.Helpers/EnumerableExtensions.cs
blob: 89fa3a8ab424bd8abc38402bc82518df48bcc82c (plain) (blame)
1
2
3
4
5
6
7
8
9
using System.Collections.Generic;
using System.Linq;

namespace IOL.Helpers;

public static class EnumerableExtension
{
	public static bool IsNullOrEmpty<T>(this IEnumerable<T> enumerable) => enumerable != null && !enumerable.Any<T>();
}