ExCollection 1.0.4.11
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
.NET Framework 4.6.1
This package targets .NET Framework 4.6.1. The package is compatible with this framework or higher.
dotnet add package ExCollection --version 1.0.4.11
NuGet\Install-Package ExCollection -Version 1.0.4.11
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ExCollection" Version="1.0.4.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ExCollection" Version="1.0.4.11" />
<PackageReference Include="ExCollection" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ExCollection --version 1.0.4.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ExCollection, 1.0.4.11"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ExCollection@1.0.4.11
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ExCollection&version=1.0.4.11
#tool nuget:?package=ExCollection&version=1.0.4.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ExCollection
用于补充可用的/常用的扩展类,避免反复编写相似代码
Nuget上线
版本说明
V1.0.2:
1. 添加字节数组,日期,图片,DataTable/DataSet转实体类等实现
字节数组,日期,图片均为扩展方法
实体类转换为泛型方法,举例说明:
public class Test
{
public int Id { get; set; }
public string Name { get; set; }
}
List<Test> list = new List<Test>();
list.Add(new Test() { Id=1,Name="123"});
list.Add(new Test() { Id = 2, Name = "234" });
DataTable dt = ExModel<Test>.FillDataTable(list);
V1.0.3:
1. 计算两个经纬度之间的直接距离(google 算法)
2. 以一个经纬度为中心计算出四个顶点
举例说明:
Degree d1 = new Degree(103.66,30.06);
Degree d2 = new Degree(104.36,30.46);
var disctance = ExDegree.GetDistance(d1,d2);
V1.0.4:
添加netframework4.6.1实现
V1.0.4.1: 均为扩展方法
更新ExByte
1.添加获取/设置uint指定位的值
2.添加字节数组转ushort,uint,long
3.添加ushort,uint转字节数组
4.添加字节数组BCD码转DateTime,以及DateTime转BCD码字节数组
5.字节数组转Double
V1.0.4.2:
更新ExByte
1.添加byte数组获取指定位数的值
V1.0.4.3:
更新ExByte
1.添加设置byte数组指定位的值
V1.0.4.4
1.添加通用枚举值Attribute获取
2.添加int SetBitValue方法
V1.0.4.5
添加byte、byte数组的位上是否存在指定值(0,1)的功能 HasBitValue
V1.0.4.6
1.添加图片切割扩展方法
2.添加字节数组转格式化字符串扩展方法
V1.0.4.7
修复枚举扩展获取自定义描述,枚举值不存在时的异常
V1.0.4.8
修复FileStream实例并未被显式地释放的问题
新增xml 序列化和反序列化实现实体类深复制
V1.0.4.9
新增实体类比较扩展方法
V1.0.4.10
新增字符串首字母大小写转换方法
V1.0.4.11
新增两个时间判断是否在一天,一周,一月,一季度,半年,一年内(均为自然周月季度年)
更新中...
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| .NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.1
- System.Drawing.Common (>= 6.0.0)
- System.Text.Encoding (>= 4.3.0)
- System.Text.Json (>= 6.0.9)
-
.NETStandard 2.1
- System.Drawing.Common (>= 6.0.0)
- System.Text.Encoding (>= 4.3.0)
- System.Text.Json (>= 6.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.4.11 | 275 | 3/15/2024 |
| 1.0.4.10 | 258 | 5/25/2023 |
| 1.0.4.9 | 268 | 4/26/2023 |
| 1.0.4.8 | 619 | 2/16/2022 |
| 1.0.4.7 | 479 | 4/25/2021 |
| 1.0.4.6 | 496 | 2/3/2021 |
| 1.0.4.5 | 517 | 1/13/2021 |
| 1.0.4.4 | 525 | 12/29/2020 |
| 1.0.4.3 | 576 | 11/27/2020 |
| 1.0.4.2 | 538 | 11/27/2020 |
| 1.0.4.1 | 588 | 11/25/2020 |
| 1.0.4 | 596 | 11/20/2020 |
| 1.0.3 | 586 | 11/20/2020 |
| 1.0.2 | 600 | 11/20/2020 |
| 1.0.1 | 544 | 11/20/2020 |
| 1.0.0 | 540 | 11/20/2020 |