摘要:
public void ClearData() { System.Reflection.PropertyInfo[] properties = this.GetType().GetProperties(); foreach (System.Reflection.PropertyInfo property in properties) { if (property.PropertyType.FullName=="System.String") property.SetValue(this, "", null); } } 阅读全文