110,538
社区成员
发帖
与我相关
我的任务
分享
public class WORD
{
public INFO word1;
public INFO word2;
}
public class INFO
{
public string info1 ;
public string info2 ;
public Color color ;
}
PropertyInfo property = typeof(WORD).GetProperty("word1");
INFO info = (INFO)property.GetValue(word);
info.info1 = "1";
info.info2 = "2";
property.SetValue(word, info);