<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0-preview.3.25171.5" />

ThrowHelper

static class 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); } } }