Files
TaskHybrid/Template.Shared/Core/Helpers/ObjectExtensions.cs

14 lines
334 B
C#

using System.Collections;
namespace Template.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);
}