// // Copyright (c) PlaceholderCompany. All rights reserved. // #pragma warning disable CA1720 // Variable contains type name namespace Jellyfin.Extensions { using System; using System.Diagnostics.CodeAnalysis; /// /// 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(); } }