Be able to query methods parameters types
NDepend code model should propose a getter IType IMethods.ParametersTypes to be able to write certain code queries and rules, like security related ones.
AdminPatrick Smacchia (Senior Software Engineer, NDepend) shared this idea
Thomas Levesque commented
Not just the type, but also more information about parameters (name, type, attributes, ref/out...)
We use the NotNull and CanBeNull attributes to inform ReSharper null reference analysis. It would be great to use NDepend to enforce a rule that e.g. all constructor parameters for reference types are explicitly tagged as NotNull or CanBeNull.