My code is...
public static void AssertNotNull<T>(string name, T val)
{
if (val == null)
throw new ArgumentNullException(String.Format("{0} must not be null", name));
}
Resharper is recommending...
public static void AssertNotNull<T>(string name, T val)
{
if (Equals(val, default(T)))
throw new ArgumentNullException(String.Format("{0} must not be null", name));
}