mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-04 02:12:51 +00:00
20 lines
373 B
C#
20 lines
373 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
public static class IListExtensions
|
|
{
|
|
public static bool NullOrEmpty<T>(this IList<T> list)
|
|
{
|
|
return list == null || list.Any() == false;
|
|
}
|
|
|
|
public static bool NotNullOrEmpty<T>(this IList<T> list)
|
|
{
|
|
return NullOrEmpty<T>(list) == false;
|
|
}
|
|
}
|
|
|