From 75c92d4685c64e37bc8c52fc5ebf0ec83290726f Mon Sep 17 00:00:00 2001 From: walon Date: Mon, 21 Jun 2021 20:59:10 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=87=8D=E6=9E=84=E3=80=91=20Excel2Te?= =?UTF-8?q?xtWriter=20=E7=BB=86=E5=BE=AE=E4=BB=A3=E7=A0=81=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Excel2TextDiff/Excel2TextWriter.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Excel2TextDiff/Excel2TextWriter.cs b/src/Excel2TextDiff/Excel2TextWriter.cs index ac5336c..6fabcda 100644 --- a/src/Excel2TextDiff/Excel2TextWriter.cs +++ b/src/Excel2TextDiff/Excel2TextWriter.cs @@ -11,12 +11,6 @@ namespace Excel2TextDiff { class Excel2TextWriter { - class CommandLineOptions - { - [Option('p', "port", Required = false, HelpText = "listen port")] - public int Port { get; set; } = 8899; - } - public void TransformToTextAndSave(string excelFile, string outputTextFile) { var lines = new List(); @@ -27,13 +21,13 @@ namespace Excel2TextDiff do { lines.Add($"===[{reader.Name ?? ""}]==="); - LoadRemainRows(reader, lines); + LoadRows(reader, lines); } while (reader.NextResult()); } File.WriteAllLines(outputTextFile, lines, System.Text.Encoding.UTF8); } - private void LoadRemainRows(IExcelDataReader reader, List lines) + private void LoadRows(IExcelDataReader reader, List lines) { int rowIndex = 0; while (reader.Read())