Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 public static string Line(Record record)
 {
     return record.ToString();
 }