as fxcop is an assembly inspector, is it possible to create a custom rule that check if there's more than one class per file ?
If yes, how to do that ?
Thanks for your help
It is not possible to do that. Since FxCop only inspects binaries, it is impossible to tell which file a class was defined it.
However, look at StyleCop, which comes with such a rule out of the box. (SA1402: FileMayOnlyContainASingleClass)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With