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.
我有点好奇为什么 CAS 在 MVC 中被广泛使用。其中很多似乎也是压制消息。我可能误解了它,但我一直认为如果你完全信任你使用的代码/服务器,你就不需要使用 CAS。
MVC 不直接使用 CAS,因为 MVC 二进制文件是安全透明的。如果您正在查看源代码并感到好奇,那么 [SuppressMessage] 属性只是用来告诉 FxCop 不要担心链接需求。