访问propertyinfo中的属性

时间:2018-05-08 19:31:19

标签: c# .net reflection

我需要通过Tag类在BFrame类中设置Value属性。

我如何设置 Let’s trade!   An Old Friendship, A New Day! Here comes the old, visiting at your home. It comes with a new story, about how to live the present, about how in his past he did wrong. The new day shines and 属性?

澄清:
我不是要在 Value 类中设置 Frame 属性的值,而是 Tag Value 属性的strong>属性,类型为 Frame

BFrame

1 个答案:

答案 0 :(得分:6)

GetValue的返回值转换为BFrame

var bFrame = (BFrame) frameProperty.GetValue(tag);
bFrame.Value = newValue;