@@ -14,7 +14,7 @@
<Authors>Piotr Czajkowski</Authors>
<Description>Simple library to read/write C# objects from/to Excel files. </Description>
<RepositoryType>GitHub</RepositoryType>
- <PackageReleaseNotes>Handling more number types.</PackageReleaseNotes>
+ <PackageReleaseNotes>Handling more number types. Properly handling appending to and reading from empty file.</PackageReleaseNotes>
</PropertyGroup>
<ItemGroup>
@@ -83,7 +83,7 @@ public class ExcelWriter : IDisposable
List<Mapping>? mapping = [];
var lastRow = worksheet.LastRowUsed();
- if (lastRow == null && append) append = false;
+ if (lastRow == null) append = false;
var rowIndex = (append, startFrom: appendFrom) switch
{
@@ -52,7 +52,7 @@ public static class TypeExtensions
return rawNumber;
}
- catch (OverflowException exception)
+ catch (OverflowException)
if (Nullable.GetUnderlyingType(property.PropertyType) != null) return null;
throw;
@@ -15,6 +15,8 @@ It currently supports properties of types as supported by ClosedXML, so:
- DateTime
- TimeSpan
+From version 2.8.0 it supports additional numeric types: decimal, float, long, int, short, byte and their nullable variants.
+
Additionally, it supports:
- Guid (if not a valid Guid and non-nullable then empty Guid will be returned)
- enum (if not a valid enum value and non-nullable then default value will be returned)
@@ -8,3 +8,4 @@
| 2.5.0 | Added Location to ArgumentException Message in ExcelReader. It'll show address of affected cell and the worksheet's name.|
| 2.6.0 | Added support for appending starting from given row.|
| 2.7.0 | Added support for reading properties of type Guid and enum.|
+| 2.8.0 | Handling more number types. Properly handling appending to and reading from empty file.