using System;
using System.Diagnostics.CodeAnalysis;
namespace Jellyfin.Extensions;
///
/// Guid specific extensions.
///
public static class GuidExtensions
{
///
/// Determine whether the guid is default.
///
/// The guid.
/// Whether the guid is the default value.
public static bool IsEmpty(this Guid guid)
=> guid.Equals(default);
///
/// Determine whether the guid is null or default.
///
/// The guid.
/// Whether the guid is null or the default valueF.
public static bool IsNullOrEmpty([NotNullWhen(false)] this Guid? guid)
=> guid is null || guid.Value.IsEmpty();
}