自动输出类的字段值实用代码分享
代码如下:using System;using System.Linq;using System.Reflection; namespace LucienBao.Common{ public static class ToStringHelper { public static string ToString(object obj) { Type t = obj.GetType(); FieldInfo[] fis = t.GetFields(); return string.Join(E
下载地址
用户评论