Move IsNullOrEmpty from Matching

This commit is contained in:
Matt Nadareski
2024-11-25 11:29:22 -05:00
parent d2c59c565f
commit fe466dfe25

View File

@@ -4,6 +4,14 @@ namespace SabreTools.IO.Extensions
{
public static class ByteArrayExtensions
{
/// <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;
}
/// <summary>
/// Convert a byte array to a hex string
/// </summary>