xyQOL 1.0.4
dotnet add package xyQOL --version 1.0.4
NuGet\Install-Package xyQOL -Version 1.0.4
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="xyQOL" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="xyQOL" Version="1.0.4" />
<PackageReference Include="xyQOL" />
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 xyQOL --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: xyQOL, 1.0.4"
#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 xyQOL@1.0.4
#: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=xyQOL&version=1.0.4
#tool nuget:?package=xyQOL&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
xyQOL
Extracted component of xyToolz — source is maintained in the main xyToolz repository; this package exposes only this module standalone.
Quality-of-life helpers: safe-execution wrappers, reflection-based property mapping, and collection-to-string joining.
Install
dotnet add package xyQOL
Contents
xy— misc static helpers:TryCatch(...)— sync/async overloads that wrap a delegate call in try/catch (0–2 params,params object[], with/without return value).Repeat(char, int),Print(this string),Log(this string).Start(string processName),Open(string fullPath)— start/open a process or file.Editor()/Editor(string filePath)— open a text editor.Piep()— system beep.Crash(UInt128)— deliberate failure helper.
xyPropertyHelper— reflection-based object/dictionary mapping:GetPropertyInfosForTarget<T>(T obj)— publicPropertyInfo[]of an object.GetPropertyValuesForTarget<TKey,TValue,T>(T obj)— object's public properties as a dictionary.GetEntityFromDictionary<T,TKey,TValue>(Dictionary<TKey,TValue>)— build an instance ofTfrom a dictionary.PropertiesToString<TKey,TValue,T>(Dictionary<TKey,TValue>).
xySpiller— extension methods to join collections into a single string:Spill<T>(this IEnumerable<T> / T[] / IList<T>, ...),Spill<TKey,TValue>(this Dictionary<TKey,TValue>, ...).JoinDebug<T>(this IEnumerable<T>, ...).
Example
object result = xy.TryCatch(() => File.ReadAllText("config.json"));
var values = xyPropertyHelper.GetPropertyValuesForTarget<string, object, MyClass>(instance);
string joined = new[] { 1, 2, 3 }.Spill(); // "1, 2, 3"
Dependencies
xyLoggerxyMessageFactory
Target Framework
.NET 8.0
License
GPL-3.0-or-later
| 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
- xyLogger (>= 1.0.4)
- xyMessageFactory (>= 1.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on xyQOL:
| Package | Downloads |
|---|---|
|
xySecurity
Package Description |
|
|
xyMaths
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.