摘要: 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); } } 阅读全文
posted @ 2013-09-12 11:29 万德源 阅读(331) 评论(0) 推荐(0) 编辑