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.
之前在面试的时候遇到过这个问题,一直没有深入研究,但最近想了很多,也想不出一个好的答案。当我想到附加属性时,我会直接想到与 UI 相关的概念——将附加属性与 LINQ 一起使用会有什么好处?我开始认为答案是“他们不是”,除非我另有发现!
Linq 和附加属性不相关。我想问这个问题是为了让你感到困惑。