var properties = typeof(VPPair).GetProperties(); int column = 1; int row = 1; foreach (System.Reflection.PropertyInfo info in properties) { EI.Output_On_Cell<string>(EI.ExcelSheet, row, column, info.Name); column += 1; } //换行 row += 1; column = 1; for (int i = 0; i < dp.Count; i++) { foreach (System.Reflection.PropertyInfo info in dp[i].GetType().GetProperties()) { string propertyName = info.Name; EI.Output_On_Cell <object> (EI.ExcelSheet, row,column, info.GetValue(dp[i])); column += 1; } //换行 row += 1; column = 1; }