The MaxParameterCountAttribute is only valid on AttributeTargets.Constructor | AttributeTargets.Method so cannot be applied to a class that has a primary constructor
The attribute should also support AttributeTargets.Class, assuming this is correctly picked up by the analyzer, increasing the max count allowed. If not, support for that will also need to be added.
The
MaxParameterCountAttribute
is only valid onAttributeTargets.Constructor | AttributeTargets.Method
so cannot be applied to a class that has a primary constructorThe attribute should also support
AttributeTargets.Class
, assuming this is correctly picked up by the analyzer, increasing the max count allowed. If not, support for that will also need to be added.