CodeHelper.Core.Extensions
1.0.0
See the version list below for details.
dotnet add package CodeHelper.Core.Extensions --version 1.0.0
NuGet\Install-Package CodeHelper.Core.Extensions -Version 1.0.0
<PackageReference Include="CodeHelper.Core.Extensions" Version="1.0.0" />
paket add CodeHelper.Core.Extensions --version 1.0.0
#r "nuget: CodeHelper.Core.Extensions, 1.0.0"
// Install CodeHelper.Core.Extensions as a Cake Addin #addin nuget:?package=CodeHelper.Core.Extensions&version=1.0.0 // Install CodeHelper.Core.Extensions as a Cake Tool #tool nuget:?package=CodeHelper.Core.Extensions&version=1.0.0
CodeHelper.Core.PlaceHolder
CodeHelper.Core.Extensions provides useful extensions, to make coding easier and simpler
Questions?
- Frederik van Lierde https://twitter.com/@frederik_vl/
- LinkedIN https://www.linkedin.com/company/codehelper-dotnet/
- NuGet Package: https://www.nuget.org/packages/CodeHelper.Core.Extensions
Support
You can support the work if you want:
- Buy Me A Coffee: https://www.buymeacoffee.com/codehelper.net
- Revolut: https://revolut.me/frederwa9
Versions
- 1.0.0: Retrieve the string representation of an Enum value
Use the plugin as follows:
using CodeHelper.Core.Extenions;
public enum Countries
{
[StringValue("United States of Amercia")] UnitedStates,
[StringValue("Belgium, Belgi�, Belgique")] Belgium,
France
}
You add add a userfriendly representatio to your enum values, by using the attribute StringValue
Code with List + Markdown
using CodeHelper.Core.Extenions;
Console.WriteLine(Countries.Belgium.ToString());
Console.WriteLine(Countries.Belgium.ToStringValue());
Console.WriteLine(Countries.France.ToStringValue());
Result:
Belgium Belgium, Belgie, Belgique France
In case no StringValue attribute is available, the Enum Name will be returned (example France)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on CodeHelper.Core.Extensions:
Package | Downloads |
---|---|
CodeHelper.Core.PlaceHolder
Replace placeholders in any text with the values of the given object |
|
XParserLibrary.Core
Package Description |
|
CodeHelper.Core.OAuth2
CodeHelper.Core.OAuth2 is a lightweight and easy to use .NET OAuth Wrapper (Mostly used by the CodeHelper.API packages |
|
CodeHelper.API.Pinterest
CodeHelper.API.Pinterest is a lightweight and easy to use .NET Pinterest Wrapper letting you to manage your baords and pins (including create, update and delete For more information and a list of endpoints available, please see the detailed documentation pages below. |
|
CodeHelper.Core.Database.SqlServer
CodeHelper.Core.Database.SqlServer is a modern lightweight database mapper for .NET Reduce the code and map easily your stored procedures to a object, set value of an object from the database, get lists from database and more... |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.4.2 | 2,999 | 10/31/2022 | |
1.4.1 | 2,004 | 9/24/2022 | |
1.3.9 | 1,718 | 9/20/2022 | |
1.3.8 | 413 | 9/19/2022 | |
1.3.7 | 425 | 9/17/2022 | |
1.3.6 | 856 | 9/16/2022 | |
1.3.5 | 439 | 9/15/2022 | |
1.3.4 | 475 | 9/15/2022 | |
1.3.3 | 440 | 9/15/2022 | |
1.3.2 | 421 | 9/15/2022 | |
1.3.1 | 443 | 9/14/2022 | |
1.3.0 | 478 | 9/14/2022 | |
1.2.0 | 520 | 9/13/2022 | |
1.1.0 | 428 | 9/11/2022 | |
1.0.0 | 407 | 9/10/2022 |