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.
刚才我在 msdn http://msdn.microsoft.com/en-us/library/2549tw02.aspx中阅读了索引器
我很困惑,因为索引器在该示例中看起来像一个对象数组。请告诉我索引器和对象数组之间的区别
索引器是允许您为类提供类似数组的接口的属性。这并不意味着您的对象是一个数组。