DBDelve
Dive deep into your data. A fast, native, multi-engine database client written in Rust. Free and open source, no telemetry.
翻译准备中
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A comprehensive collection of .NET utility libraries providing extension methods, helpers, and utilities to simplify everyday development tasks and reduce boilerplate code.
Ploch.Common is a suite of .NET libraries targeting netstandard2.0 and net8.0+, offering:
If Ploch.Common saves you time or makes your projects nicer, please consider supporting its development. Every coffee directly funds time spent on maintenance, bug fixes, and new features.
Thank you for keeping open-source maintainers caffeinated.
# Core library
dotnet add package Ploch.Common
# Additional libraries
dotnet add package Ploch.Common.DependencyInjection
dotnet add package Ploch.Common.Serialization
dotnet add package Ploch.Common.Serialization.SystemTextJson
dotnet add package Ploch.TestingSupport
This project uses Nerdbank.GitVersioning (NBGV) for automatic
version computation from version.json and git commit history.
main.snupkg) are published to the NuGet symbol server3.0) — the patch version is computed by NBGVdotnet tool restore
dotnet nbgv get-version
Convenient extension methods for common string operations.
using Ploch.Common;
string? value = GetValue();
// Check if string is null or empty
if (value.IsNullOrEmpty())
{
// Handle empty string
}
// Check if string is NOT null or empty
if (value.IsNotNullOrEmpty())
{
ProcessValue(value);
}
// Check for whitespace
if (value.IsNullOrWhiteSpace())
{
// Handle whitespace-only string
}
// Convert empty strings to null
string? result = "".NullIfEmpty(); // Returns null
string? result2 = " ".NullIfWhiteSpace(); // Returns null
using Ploch.Common;
// Parse to integers
string number = "42";
int value = number.ToInt32(); // Returns 42
long bigValue = number.ToInt64(); // Returns 42L
// Safe conversion with TryConvert
if (number.TryConvertToInt32(out int result))
{
Console.WriteLine($"Parsed: {result}");
}
// Base64 encoding/decoding
string original = "Hello, World!";
string encoded = original.ToBase64String(); // Encodes to base64
string decoded = encoded.FromBase64String(); // Decodes back
以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗