mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 17:59:14 +00:00
18 lines
No EOL
501 B
C#
18 lines
No EOL
501 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using NzbDrone.Common.EnsureThat.Resources;
|
|
|
|
namespace NzbDrone.Common.EnsureThat
|
|
{
|
|
public static class EnsureGuidExtensions
|
|
{
|
|
[DebuggerStepThrough]
|
|
public static Param<Guid> IsNotEmpty(this Param<Guid> param)
|
|
{
|
|
if (Guid.Empty.Equals(param.Value))
|
|
throw ExceptionFactory.CreateForParamValidation(param.Name, ExceptionMessages.EnsureExtensions_IsEmptyGuid);
|
|
|
|
return param;
|
|
}
|
|
}
|
|
} |