Code inspection: Use 'Type.EmptyTypes'
This inspection reports creation of an empty Type[] array that can be replaced with Type.EmptyTypes. This avoids repeated allocations and uses the standard framework constant for an empty type array.
Example
var parameterTypes = new Type[0];
var parameterTypes = Type.EmptyTypes;
Quick-fix
Replace the empty Type[] allocation with Type.EmptyTypes.
29 March 2026