Ross ROSS = Recommend OSS · open-source software intelligence for agents

ardalis/SmartEnum

A base class for quickly and easily creating strongly typed enum replacements in C#. observed · 2026-08-28

github.com/ardalis/SmartEnum · C# · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

65/100

  • Activity 79
  • Release rhythm 28
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 47
  • age_days: 3197
  • days_rel: 652
  • days_push: 126
  • n_releases_24m: 2

Full methodology

Adoption not part of the score

2440 stars · 184 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A C# base class library for creating strongly-typed enum alternatives with behavior, lookup by name or value, and rich integration support. It ships companion packages for EF Core, Dapper, System.Text.Json, Json.NET, and AutoFixture.

Use cases

  • replace C# enums with strongly typed classes
  • persist smart enums with EF Core
  • serialize enums as names with System.Text.Json or Json.NET
  • map smart enums with Dapper
  • implement value objects in domain-driven design
  • look up enum instances by name or value

When to choose

  • you need enums with behavior or additional properties in .NET
  • you follow DDD and want type-safe value objects instead of primitive enums
  • you need enum persistence and JSON serialization integrations out of the box

When to avoid

  • you only need simple flags or constants with no behavior
  • your project is not on .NET/C#
  • you want to avoid extra dependencies for trivial enum use cases

Facets

library · maturity stable

serialization type-system orm developer-tools programming-languages backend dotnet c smart-enum enum-alternative domain-driven-design ddd value-object efcore dapper system-text-json jsonnet nuget

1 source

Member repositories

RepositoryRoleHealth v2
ardalis/SmartEnummain65

For agents

markdown · JSON · MCP: product_card(name="ardalis/SmartEnum")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem