标签: c# reflection
PropertyInfo propertyInfo = myObjectType.GetProperty(propName); propertyInfo.SetValue(myObject, "\n some text", null);
结果是myObject.propName =“some text”
感谢