using System.Diagnostics; using NzbDrone.Common.EnsureThat.Resources; namespace NzbDrone.Common.EnsureThat { public static class EnsureNullableValueTypeExtensions { [DebuggerStepThrough] public static Param IsNotNull(this Param param) where T : struct { if (param.Value == null || !param.Value.HasValue) throw ExceptionFactory.CreateForParamNullValidation(param.Name, ExceptionMessages.EnsureExtensions_IsNotNull); return param; } } }