![]() |
VOOZH | about |
dotnet add package Casper.Library --version 1.7.7
NuGet\Install-Package Casper.Library -Version 1.7.7
<PackageReference Include="Casper.Library" Version="1.7.7" />
<PackageVersion Include="Casper.Library" Version="1.7.7" />Directory.Packages.props
<PackageReference Include="Casper.Library" />Project file
paket add Casper.Library --version 1.7.7
#r "nuget: Casper.Library, 1.7.7"
#:package Casper.Library@1.7.7
#addin nuget:?package=Casper.Library&version=1.7.7Install as a Cake Addin
#tool nuget:?package=Casper.Library&version=1.7.7Install as a Cake Tool
A utility library for .NET applications providing helpful extensions and attributes for common development tasks.
dotnet add package Casper.Library
using Casper.Library.Helpers.Extensions;
using Casper.Library.Helpers.Attributes;
public enum Status
{
[Description(Code = "ACT", Description = "Active")]
Active,
[Description(Code = "INA", Description = "Inactive")]
Inactive
}
// Get custom code
string code = Status.Active.GetCode(); // Returns "ACT"
// Get description
string description = Status.Active.GetDescription(); // Returns "Active"
// Convert string to enum
Status status = "ACT".ToEnum<Status>(); // Returns Status.Active
using Casper.Library.Helpers.Extensions;
// Convert nullable numbers with default fallback
decimal? nullableDecimal = null;
decimal result = nullableDecimal.ToDecimalDefault(); // Returns 0
// Convert string to decimal with culture support
string numberString = "123.45";
decimal decimalValue = numberString.ToDecimalDefault("en-US"); // Returns 123.45
using Casper.Library.Helpers.Attributes;
[Permision(
ServiceCode = "USER",
ServiceName = "User Management",
GroupCode = "ADMIN",
GroupName = "Administration",
PermisionCode = "CREATE",
PermisionName = "Create User",
Description = "Allows creating new users"
)]
public class UserController
{
// Controller implementation
}
This project is licensed under the MIT License - see the file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.7.7 | 64 | 6/15/2026 |
| 1.7.6 | 101 | 6/15/2026 |
| 1.7.5 | 120 | 5/30/2026 |
| 1.7.4 | 99 | 5/29/2026 |
| 1.7.3 | 123 | 5/20/2026 |
| 1.7.2 | 264 | 4/22/2026 |
| 1.7.1 | 144 | 4/22/2026 |
| 1.7.0 | 98 | 4/22/2026 |
| 1.6.9 | 153 | 4/2/2026 |
| 1.6.8 | 118 | 4/2/2026 |
| 1.6.5 | 159 | 3/25/2026 |
| 1.6.4 | 108 | 3/24/2026 |
| 1.6.3 | 104 | 3/24/2026 |
| 1.6.2 | 151 | 3/23/2026 |
| 1.6.1 | 104 | 3/23/2026 |
| 1.6.0 | 108 | 3/20/2026 |
| 1.5.10 | 125 | 3/18/2026 |
| 1.5.9 | 199 | 3/13/2026 |