ThrowHelper
using System.Runtime.CompilerServices;
namespace System
{
internal static class ThrowHelper
{
[System.Runtime.CompilerServices.NullableContext(2)]
internal static void ThrowIfNull(object argument, [System.Runtime.CompilerServices.CallerArgumentExpression("argument")] string paramName = null)
{
if (argument == null)
Throw(paramName);
}
private static void Throw(string paramName)
{
throw new ArgumentNullException(paramName);
}
}
}