With AttributeDesignator, you specify an attribute by defining its name and type.
利用AttributeDesignator,可以通过定义属性名和类型来指定一个属性。
Listing 4 shows a version of the singleton that USES a method instead of an attribute to specify the appropriate class.
清单4显示了使用方法而非属性来指定适当类的单例。
As before, the instructions show you how to specify the properties for one attribute as an example and then you can specify the others.
与之前一样,这里只给出如何为某个属性指定property的指导,作为示例,您可以参照指定其他属性。
应用推荐