Using SonarAnalyzer.CSharp 7.2.0.5463, the call to string.IsNullOrWhiteSpace below erroneously generates warning S2583 stating the code will not be executed because it always returns false.
void Func(string arg)
{
if (arg== null)
{
throw new ArgumentNullException(nameof(arg));
}
if (string.IsNullOrWhiteSpace(arg))
{
throw new ArgumentException("is blank", nameof(arg));
}
}