﻿namespace Nett.Extensions
{
    using System;

    internal static class GenericExtensions
    {
        public static T CheckNotNull<T>(this T toCheck, string argName)
            where T : class
        {
            if (toCheck == null) { throw new ArgumentNullException(nameof(argName)); }

            return toCheck;
        }
    }
}

﻿namespace Nett.Extensions
{
    using System;

    internal static class GenericExtensions
    {
        public static T CheckNotNull<T>(this T toCheck, string argName)
            where T : class
        {
            if (toCheck == null) { throw new ArgumentNullException(argName); }

            return toCheck;
        }
    }
}

Fix that check not null message didn't contain argument name
Fix that check not null message didn't contain argument name
