Skip to content

Commit fea9b01

Browse files
pawelbaranFraser Greenroyd
authored andcommitted
ToString() replaced with IToText()
1 parent 0b450c8 commit fea9b01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Excel_Adapter/CRUD/Create/Create.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* along with this code. If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
2121
*/
2222

23+
using BH.Engine.Base;
2324
using BH.Engine.Excel;
2425
using BH.oM.Adapters.Excel;
2526
using BH.oM.Base;
@@ -55,7 +56,7 @@ private bool Create(IXLWorkbook workbook, string sheetName, List<TableRow> data,
5556
if (string.IsNullOrWhiteSpace(startingCell))
5657
return false;
5758

58-
worksheet.Cell(startingCell).InsertData(data.Select(x => x.Content.Select(y => y.ToString()).ToArray()).ToList());
59+
worksheet.Cell(startingCell).InsertData(data.Select(x => x.Content.Select(y => y.IToText()).ToArray()).ToList());
5960
return true;
6061
}
6162
catch (Exception e)

0 commit comments

Comments
 (0)