14 lines
334 B
C#
14 lines
334 B
C#
using System.Collections;
|
|
|
|
namespace ConSegna.Shared.Core.Helpers;
|
|
|
|
public static class ObjectExtensions
|
|
{
|
|
public static bool IsNullOrEmpty(this IEnumerable? obj) =>
|
|
obj == null || obj.GetEnumerator().MoveNext() == false;
|
|
|
|
|
|
public static bool IsNullOrEmpty(this string? obj) =>
|
|
string.IsNullOrEmpty(obj);
|
|
}
|