这可以通过使用反射 API 或潜在访问 XAML 架构上下文来完成。
This could be done using reflection APIs, or potentially by accessing the XAML schema context.
通过使用反射机制,那些能够引用您的对象的、高度受信任的代码,可以获取和设置私有成员。
Using reflection mechanisms, highly trusted code that can reference your object can get and set private members.
在这里,HolderBean类包含一对属性,通过使用反射来调用get和set方法,可以在运行时访问这一对属性。
Here the HolderBean class contains a pair of properties that can be accessed at run time by using reflection to call the get and set methods.
应用推荐