AV.Enumeration
1.4.0
See the version list below for details.
dotnet add package AV.Enumeration --version 1.4.0
NuGet\Install-Package AV.Enumeration -Version 1.4.0
<PackageReference Include="AV.Enumeration" Version="1.4.0" />
paket add AV.Enumeration --version 1.4.0
#r "nuget: AV.Enumeration, 1.4.0"
// Install AV.Enumeration as a Cake Addin #addin nuget:?package=AV.Enumeration&version=1.4.0 // Install AV.Enumeration as a Cake Tool #tool nuget:?package=AV.Enumeration&version=1.4.0
Enumeration class
This nuget implements the Enumeration class as an alternate to Enum types. The implementation is inspired from famous eShopOnContainers example.
public class PaymentType : Enumeration
{
public static readonly PaymentType DebitCard = new PaymentType(0);
public static readonly PaymentType CreditCard = new PaymentType(1);
private PaymentType(int value, [CallerMemberName] string name = null) : base(value, name)
{
}
}
Want to know more about the Enumeration class?
See my Enumeration class blog post series
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.CodeAnalysis (>= 3.5.0)
-
.NETStandard 2.1
- Microsoft.CodeAnalysis (>= 3.5.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on AV.Enumeration:
Package | Downloads |
---|---|
AV.Enumeration.ModelBinder
Custom model binder to allow Enumeration class pass as a query string parameter. |
|
AV.Enumeration.SystemTextJson
System.Text.Json serialization support for Enumeration class. |
|
AV.Enumeration.NewtonsoftJson
Newtonsoft.Json serialization support for Enumeration class. |
|
AV.Enumeration.NSwag
NSwag support for Enumeration class to generate Enumeration as an Enum type schema. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.8 | 2,378 | 10/8/2022 |
2.0.6-pre-release | 303 | 10/8/2022 |
1.5.4 | 40,638 | 7/12/2020 |
1.5.0 | 1,518 | 7/11/2020 |
1.4.0 | 1,257 | 6/26/2020 |
1.1.0 | 1,338 | 6/25/2020 |
1.0.1 | 1,297 | 6/23/2020 |
0.1.13 | 1,027 | 6/22/2020 |
0.1.12 | 1,306 | 6/22/2020 |
0.1.7 | 1,171 | 6/20/2020 |
0.1.6 | 726 | 6/20/2020 |
0.1.5 | 757 | 6/20/2020 |