Intellenum 1.0.6
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
dotnet add package Intellenum --version 1.0.6
NuGet\Install-Package Intellenum -Version 1.0.6
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="Intellenum" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Intellenum --version 1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Intellenum, 1.0.6"
#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 Intellenum as a Cake Addin #addin nuget:?package=Intellenum&version=1.0.6 // Install Intellenum as a Cake Tool #tool nuget:?package=Intellenum&version=1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Intellenum - Intelligent Enum Generator
What is the package?
This is a Source Generator to generate intelligent enums.
The main goal is that the intelligent enums have almost the same speed and memory performance as using primitive enums and have much faster lookups.
[Intellenum<int>]
[Member("One", 1)]
public partial struct Numbers
{
}
You can now lookup names and values in a performant way.
You can also declare instances in different ways, e.g.
[Intellenum]
public partial class CustomerType
{
static CustomerType()
{
Member("Standard", 1);
Member("Gold", 2);
}
}
To see if an enum contains a name, use IsNameDefined
, or to try to get the named instances, use TryFromName
.
The same methods exist for values.
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 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. |
.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 was computed. |
.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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Intellenum:
Repository | Stars |
---|---|
tpill90/steam-lancache-prefill
CLI tool to automatically prime a Lancache with Steam games
|
|
SteveDunn/Intellenum
Intelligent Enums
|
Version | Downloads | Last updated |
---|---|---|
1.0.6 | 1,262 | 9/12/2024 |
1.0.4 | 623 | 8/14/2024 |
1.0.3 | 1,289 | 7/16/2024 |
1.0.2 | 103 | 7/13/2024 |
1.0.1 | 484 | 6/24/2024 |
1.0.0-beta.4 | 699 | 6/2/2024 |
1.0.0-beta.3 | 8,743 | 4/12/2023 |
1.0.0-beta.2 | 101 | 4/11/2023 |
1.0.0-beta.1 | 102 | 4/10/2023 |
0.0.1-alpha.5 | 120 | 4/4/2023 |
0.0.1-alpha.4 | 113 | 3/17/2023 |
0.0.1-alpha.3 | 106 | 3/16/2023 |
0.0.1-alpha.2 | 94 | 3/15/2023 |
0.0.1-alpha.1 | 105 | 3/12/2023 |