The following example shows how to implement interface indexers.
下列范例将示范如何实作介面索引子。
For more information about how to use indexers with an interface, see interface indexers.
有关如何对接口使用索引器的更多信息,请参见接口索引器。
An interface can specify methods, properties, events, and indexers for classes to implement.
一个接口可以为将要实现的类指定方法、属性、事件、和索引器。
应用推荐