示例#1
0
 public static string Line(object obj)
 {
     PropertyInfo[] propertyInfos = obj.GetType().GetProperties();
     Record record = new Record();
     foreach (PropertyInfo propertyInfo in propertyInfos)
     {
         record[propertyInfo.Name] = propertyInfo.GetValue(obj, null).ToString();
     }
     return record.ToString();
 }
示例#2
0
 public static string Line(Record record)
 {
     return record.ToString();
 }