An indexer introduced in a class or struct hides all base class indexers with the same signature.
类别或结构所引入的索引子可隐藏所有具相同签章的基底类别成员。
For this example (Figure 4), you will model a read-only indexer (thus it has only a get accessor) in the DrawingSurface class.
对于本实例(图4),您将对drawingsurface类中的只读索引器建模(因而它只有get存取器)。
The indexer implements IPDOMIndexer, but its class depends on the user's CDT preferences.
该索引器实现 IPDOMIndexer,但其类依赖于用户的CDT 首选项。
Properties and indexers on a class can define extra accessors for a property or indexer defined on an interface.
类的属性和索引器可以为接口上定义的属性或索引器定义额外的访问器。
Properties and indexers of a class can define extra accessors for a property or indexer defined on an interface.
属性和索引器的类可以定义额外的属性或索引器在接口上定义的访问器。
The indexer notation not only simplifies the syntax for client applications; it also makes the class and its purpose more intuitive for other developers to understand.
索引器表示法不仅简化了客户端应用程序的语法,还使其他开发人员能够更加直观地理解类及其用途。
The indexer notation not only simplifies the syntax for client applications; it also makes the class and its purpose more intuitive for other developers to understand.
索引器表示法不仅简化了客户端应用程序的语法,还使其他开发人员能够更加直观地理解类及其用途。
应用推荐