Chet.Utils
1.4.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Chet.Utils --version 1.4.0
NuGet\Install-Package Chet.Utils -Version 1.4.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="Chet.Utils" Version="1.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Chet.Utils" Version="1.4.0" />
<PackageReference Include="Chet.Utils" />
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 Chet.Utils --version 1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Chet.Utils, 1.4.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.
#:package Chet.Utils@1.4.0
#: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=Chet.Utils&version=1.4.0
#tool nuget:?package=Chet.Utils&version=1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Chet.Utils 项目说明文档
项目概述
Chet.Utils 是一个为日常开发提供辅助工具的库。该项目旨在简化代码编写过程中的常见操作,提高开发效率。
主要功能
扩展
- bool扩展:Bool 扩展方法类,提供常用的判断、转换、格式化、运算等功能。
- DataTable扩展:DataTable 扩展方法类,提供常用的转换、查询、操作等功能。
- DateTime扩展:DateTime 扩展方法类,提供常用的判断、转换、计算、格式化等功能。
- decimal扩展:decimal 扩展方法类,提供常用的判断、转换、运算、格式化等功能。
- double扩展:double 扩展方法类,提供常用的判断、转换、运算、格式化等功能。
- IEnumrable扩展:IEnumerable/ICollection 扩展方法类,提供常用的判断、转换、操作、统计等功能。
- Enum扩展:Enum 扩展方法类,提供常用的判断、转换、描述、枚举值操作等功能。
- File扩展:File 操作扩展方法类,提供常用的读写、判断、信息获取、操作等功能。
- Float扩展:float 扩展方法类,提供常用的判断、转换、运算、格式化等功能。
- Int扩展:int 扩展方法类,提供常用的判断、转换、运算、格式化等功能。
- Steam扩展:Stream 扩展方法类,提供常用的读取、写入、转换、判断、操作等功能。
- String扩展:string 扩展方法类,提供常用的判断、正则表达式验证、类型转换和字符串操作方法。
帮助类
- ApplicationHelper:应用程序帮助类,提供常用的应用程序操作功能。
- DataTableHelper:数据表帮助类,提供常用的数据表操作功能。
- FileHelper:文件帮助类,提供常用的文件操作功能。
- HttpClientHelper:HTTP客户端帮助类,提供常用的HTTP客户端操作功能。
- ReflectionHelper:反射帮助类,提供常用的反射操作功能。
- RegexHelper:正则表达式帮助类,提供常用的正则表达式操作功能。
- StopwatchHelper:计时帮助类,提供常用的计时操作功能。
- TaskHelper:任务帮助类,提供常用的任务操作功能。
- UnitHelper:单位帮助类,提供常用的单位转换功能。
- WebSocketHelper:WebSocket 帮助类,提供常用的 WebSocket 操作功能。
安装
您可以使用NuGet包管理器来安装Chet.Utils。在NuGet包管理器控制台输入以下命令: Install-Package Chet.Utils
版本更新
v1.4.0
- 添加WebSocket帮助类,包括Client端和Server端;WebSocket客户端帮助类,提供WebSocket连接管理、消息发送、心跳检测等功能,WebSocket服务端帮助类,提供WebSocket服务器功能、连接管理、消息广播等。
- StringExtensions类扩展了部分方法。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.Logging (>= 9.0.10)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.