Microsoft.AspNetCore.Shared.ArgumentNullThrowHelper static class ArgumentNullThrowHelper Documentation Code public static void ThrowIfNull(object argument, string paramName = null) Throws an ArgumentNullException if argument is null. public static void ThrowIfNullOrEmpty(string argument, string paramName = null) Throws an ArgumentException if argument is null or empty.