Skip to content

Commit 20766ef

Browse files
committed
[New] Remove overdue ExcelNumberFormat Dependency #271
1 parent 50dd427 commit 20766ef

File tree

7 files changed

+770
-15
lines changed

7 files changed

+770
-15
lines changed

docs/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222

2323
---
2424

25+
### 1.25.2
26+
- [New] Remove overdue ExcelNumberFormat Dependency #271
27+
2528
### 1.25.1
2629
- [Bug] Fixed QueryAsDataTable read big file will throw NotImplementedException #360
2730

docs/README.zh-CN.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232

3333
---
3434

35+
### 1.25.2
36+
- [New] 移除过期的 ExcelNumberFormat Dependency #271
37+
3538
### 1.25.1
3639
- [Bug] 修正 QueryAsDataTable 读取大文件会抛出 NotImplementedException #360
3740

docs/README.zh-Hant.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525
---
2626

27+
### 1.25.2
28+
- [New] 移除過期的 ExcelNumberFormat Dependency #271
29+
2730
### 1.25.1
2831
- [Bug] 修正 QueryAsDataTable 讀取大文件會拋出 NotImplementedException #360
2932

src/MiniExcel/MiniExcelLibs.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>net45;netstandard2.0;net5.0</TargetFrameworks>
4-
<Version>1.25.1</Version>
4+
<Version>1.25.2</Version>
55
</PropertyGroup>
66
<PropertyGroup>
77
<AssemblyName>MiniExcel</AssemblyName>
@@ -42,7 +42,4 @@ Todo : https://github.com/shps951023/MiniExcel/projects/1?fullscreen=true
4242
<ItemGroup>
4343
<None Include="icon.png" Pack="true" PackagePath="\" />
4444
</ItemGroup>
45-
<ItemGroup>
46-
<PackageReference Include="ExcelNumberFormat" Version="1.1.0" />
47-
</ItemGroup>
4845
</Project>

src/MiniExcel/OpenXml/SharedStringsDiskCache.cs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@ internal class SharedStringsDiskCache : IDictionary<int, string>,IDisposable
1313
private readonly FileStream _valueFs;
1414
private bool _disposedValue;
1515
private readonly static Encoding _encoding = new System.Text.UTF8Encoding(true);
16-
public ICollection<int> Keys => throw new NotImplementedException();
17-
18-
public ICollection<string> Values => throw new NotImplementedException();
19-
20-
public int Count => (int)(_maxIndx+1);
21-
22-
public bool IsReadOnly => throw new NotImplementedException();
23-
16+
public int Count => (int)(_maxIndx+1);
2417
public string this[int key] { get => GetValue(key); set => Add(key,value); }
2518
private long _maxIndx = -1;
2619
public bool ContainsKey(int key)
@@ -96,7 +89,9 @@ public void Dispose()
9689
Dispose(disposing: true);
9790
GC.SuppressFinalize(this);
9891
}
99-
92+
public ICollection<int> Keys => throw new NotImplementedException();
93+
public ICollection<string> Values => throw new NotImplementedException();
94+
public bool IsReadOnly => throw new NotImplementedException();
10095
public bool Remove(int key)
10196
{
10297
throw new NotImplementedException();

src/MiniExcel/Utils/DateTimeHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace MiniExcelLibs.Utils
22
{
3-
using ExcelNumberFormat;
3+
using MiniExcelLibs.Utils;
44
using System;
55
using System.Globalization;
66

@@ -11,7 +11,7 @@ internal static partial class DateTimeHelper
1111
/// </summary>
1212
public static bool IsDateTimeFormat(string formatCode)
1313
{
14-
return new NumberFormat(formatCode).IsDateTimeFormat;
14+
return new ExcelNumberFormat(formatCode).IsDateTimeFormat;
1515
}
1616
}
1717

0 commit comments

Comments
 (0)