Piotr Czajkowski 1 yıl önce
ebeveyn
işleme
fad4fa1fe1

+ 1 - 1
ExcelORM/ExcelORM/ExcelReader.cs

@@ -61,7 +61,7 @@ public class ExcelReader
             yield return value;
     }
 
-    public IEnumerable<T> Read<T>(IXLWorksheet? worksheet) where T : class, new()
+    private IEnumerable<T> Read<T>(IXLWorksheet? worksheet) where T : class, new()
     {
         if (worksheet == null) yield break;
 

+ 1 - 1
ExcelORM/ExcelORM/ExcelWriter.cs

@@ -36,7 +36,7 @@ public class ExcelWriter
         Write(values, xlWorksheet, append);
     }
 
-    private void Write<T>(IEnumerable<T> values, IXLWorksheet worksheet, bool append) where T : class, new()
+    private static void Write<T>(IEnumerable<T> values, IXLWorksheet worksheet, bool append) where T : class, new()
     {
         var enumerable = values as T[] ?? values.ToArray();
         if (!enumerable.Any()) return;