Piotr Czajkowski il y a 1 an
Parent
commit
fad4fa1fe1
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      ExcelORM/ExcelORM/ExcelReader.cs
  2. 1 1
      ExcelORM/ExcelORM/ExcelWriter.cs

+ 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;