ArgumentException.ThrowIfNull and ArgumentException.ThrowIfNullOrEmpty guard clauses
ArgumentException.ThrowIfNull and ArgumentException.ThrowIfNullOrEmpty had been introduced as guard clause in .NET 6 and .NET 7 releases. They will help to throw null exceptions cleaner way.