BenjcoreUtil 2.2.0-rc.2
This is a prerelease version of BenjcoreUtil.
dotnet add package BenjcoreUtil --version 2.2.0-rc.2
NuGet\Install-Package BenjcoreUtil -Version 2.2.0-rc.2
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="BenjcoreUtil" Version="2.2.0-rc.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BenjcoreUtil --version 2.2.0-rc.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BenjcoreUtil, 2.2.0-rc.2"
#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 BenjcoreUtil as a Cake Addin
#addin nuget:?package=BenjcoreUtil&version=2.2.0-rc.2&prerelease
// Install BenjcoreUtil as a Cake Tool
#tool nuget:?package=BenjcoreUtil&version=2.2.0-rc.2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BenjcoreUtil
What is it?
A C# library designed to make some common programming tasks easier.
Some Features Include :
- Versioning System
- A Simple yet Powerful Logger
- RSA Encryption
- Common Hashing Algorithms
Logger Example
using BenjcoreUtil.Logging;
var levels = new LogLevel[]
{
new("FATAL", 0, LogSettings.PrintAndLog),
new("ERROR", 1, LogSettings.PrintAndLog),
new("WARN", 2, LogSettings.JustLog),
new("INFO", 3, LogSettings.JustLog),
new("DEBUG", 4, LogSettings.Nothing)
};
var logger = new Logger
(
levels,
"[%l] %t{yy/MM/dd HH:mm:ss} : ",
"log.txt"
);
logger.Log("INFO", "Hello World!");
Output:
Versioning Example
using BenjcoreUtil.Versioning;
var version1 = SimpleVersion.Parse("1.2.3");
var version2 = SimpleVersion.Parse("2.0.1");
// Compare with operators
bool result1 = version1 > version2; // false
// Compare with methods
bool result2 = version1.IsNewerThan(version2); // false
Hashing Example
using BenjcoreUtil.Security.Hashing;
// Output: 7F83B1657FF1FC53B92DC18148A1D65DFC2D4B1FA3D677284ADDD200126D9069
string hash = SHA256.GetSHA256("Hello World!");
Console.WriteLine(hash);
License
Version 2.1.0 and newer are licensed under the MIT License<br> Older versions are all rights reserved. (You wouldn't want to use them anyway)<br> Copyright © Benj_2005 / Benjcore 2024
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- No dependencies.
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 |
---|---|---|
2.2.0-rc.2 | 75 | 1/26/2024 |
2.2.0-rc.1 | 42 | 1/26/2024 |
2.1.1 | 382 | 9/21/2022 |
2.1.0 | 377 | 9/18/2022 |