日期:2014-05-18  浏览次数:20836 次

PropertyType.GetValue() 方法的参数值到底要怎样填写?
foreach (PropertyInfo pi in pis)
  {
  if (pi.PropertyType.FullName == "System.String")
  pi.SetValue(pi.GetValue(pi.Name, null).ToString().Replace("'", "''"), "System.String", null);
  }

这是源码, GetValue的这个方法的第一个参数具体要传什么进去, 不是很清楚.

------解决方案--------------------
属性名
public string Name
{
get{;}
set{;}
}
传“Name"