ArgumentException overshadows ArgumentNullException in reporting, causing ArgumentNullException not to be reported. This is likely due to ArgumentNullException extending ArgumentException.
This is a quirk of the framework and its legacy that those exceptions happen to coincide.
In this case it was about Dictionary<TKey, TValue>.Add(TKey key, TValue value) declaring both for different reasons.
You don't have this problem when nullable is active. Since ArgumentNullException is not relevant there.
ArgumentException overshadows
ArgumentNullException
in reporting, causingArgumentNullException
not to be reported. This is likely due toArgumentNullException
extendingArgumentException
.This is a quirk of the framework and its legacy that those exceptions happen to coincide.
In this case it was about
Dictionary<TKey, TValue>.Add(TKey key, TValue value)
declaring both for different reasons.You don't have this problem when nullable is active. Since
ArgumentNullException
is not relevant there.