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

ThrowHelper

static class ThrowHelper
using System.Runtime.CompilerServices; namespace System { internal static class ThrowHelper { 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); } } }