dotnet · dotnet/ArgumentNullException
ArgumentNullException
ArgumentNullException
Thrown when a null reference is passed to a method parameter that does not accept it. Indicates a programming error at the call site. Use ArgumentNullException.ThrowIfNull() (.NET 6+) or explicit null guards at the top of methods.