Overview of Intellenum
mainIntellenum is an open-source C# library designed for fast and efficient enum handling. It uses C# source generation to create backing code that enables extremely fast, allocation-free lookups using methods like FromName, FromValue, and their Try... variants.
Unlike standard C# enums, Intellenum is designed to be used with partial class definitions, allowing you to define static members that represent your enum values. It also includes code analyzers to prevent common safety issues, such as accidental defaulting.
[Intellenum]
public partial class CustomerType
{
public static readonly CustomerType Standard, Gold;
}