Files
SabreTools/SabreTools.Core/ArrayExtensions.cs

15 lines
358 B
C#
Raw Normal View History

using System;
namespace SabreTools.Core
{
public static class ArrayExtensions
{
/// <summary>
/// Indicates whether the specified array is null or has a length of zero
/// </summary>
public static bool IsNullOrEmpty(this Array? array)
{
return array == null || array.Length == 0;
}
}
}