回答編集履歴

1

一部修正

2022/11/09 04:55

投稿

ebiryo
ebiryo

スコア797

test CHANGED
@@ -4,7 +4,7 @@
4
4
  static IXLCell GetLastCell( IXLWorksheet sheet, string columnLetter)
5
5
  {
6
6
  var usedCells = sheet.CellsUsed();
7
- return usedCells.Where(cell => cell.Address.ColumnLetter == columnLetter && cell.IsEmpty() == false).LastOrDefault();
7
+ return usedCells.LastOrDefault(cell => cell.Address.ColumnLetter == columnLetter && cell.IsEmpty() == false);
8
8
  }
9
9
  ///////////////////////////////////////////////
10
10