Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在评估 NDepend 作为加强代码质量和正确使用框架的努力的一部分,并且我正在寻找一种方法来编写相当于CA2000: Dispose objects before lost scope的方法。其他任何人都尝试过这样做,或者知道如何做到这一点?
此规则无法通过 NDepend 实现,因为上下文位于方法主体内。NDepend 更多的是关于编写有关程序结构的代码规则,例如: