ZYH.Units 1.2.0

dotnet add package ZYH.Units --version 1.2.0
NuGet\Install-Package ZYH.Units -Version 1.2.0
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="ZYH.Units" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ZYH.Units --version 1.2.0
#r "nuget: ZYH.Units, 1.2.0"
#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.
// Install ZYH.Units as a Cake Addin
#addin nuget:?package=ZYH.Units&version=1.2.0

// Install ZYH.Units as a Cake Tool
#tool nuget:?package=ZYH.Units&version=1.2.0

ZYH.Units 基础单元工具

功能

  • Serializer → 支持json和xml的序列化及反序列化
  • Random → 支持生成随机码
  • HttpFormData → 支持为http提供的文件包装器
  • HtmlPaging → 支持html分页
  • 扩展System.Text.Json.JsonElement → 支持将对象转换为T对象
  • 扩展System.Net.Http.HttpClient → 支持get\post json\post kv\post xml\post multipart form
  • 扩展System.IO.MemoryStream → 支持保存为文件
  • 扩展System.byte[] → 支持保存为文件
  • 扩展System.DateTime → 支持将DateTime转换为符合中国习惯的表示方式 \ 转换为时间截
  • 扩展System.Int64 → 支持将13位或10位时间截转换为DateTime
  • 扩展System.Int → 支持将13位或10位时间截转换为DateTime
  • 扩展System.String → 支持将13位或10位时间截转换为DateTime \ 从unicode解码 \ md5加密 \ aes加解密 \ sha256加密 \ sha1加密

更新日志

  • 1.0.4 增加DateTime扩展方法支持转换为时间截
  • 1.0.7 增加String扩展方法ToWeiXin支持将中文转换为微信所需要的字符集对应的字符串
  • 1.0.8 删除String扩展方法ToWeiXin方法
  • 1.0.9 增加Serializer.JsonSerializeWithIndent方法,Json序列化(含格式缩进,多用于输出日志信息)
  • 1.1.0 修改ToAes \ FromAes 方法增加容错性,当转换失败时返回 null
  • 1.2.0
    1.增加 Serializer.MakeDefaultJsonOptions方法,用于生成带有默认值的序列化选项。
    2.增加 Serializer.MakeDefaultJsonOptionsWithIndent方法,额外设置了文本缩进。
    3.修改 Serializer.***被调用时将使用新的序列化选项。
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ZYH.Units:

Package Downloads
ZYH.WeiXin.Pay

代理微信支付服务

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 415 9/2/2022
1.1.0 456 9/14/2021
1.0.9 298 8/13/2021
1.0.8 431 7/19/2021
1.0.7 473 7/19/2021
1.0.6 326 6/21/2021
1.0.5 322 6/17/2021
1.0.4 452 6/9/2021
1.0.3 346 6/9/2021
1.0.2 333 6/7/2021
1.0.1 609 6/7/2021
1.0.0 313 5/27/2021