SmartEnum is a .NET library that provides a strongly typed alternative to traditional C# enums by allowing developers to create richer, object-oriented enumeration classes. Instead of being limited to primitive numeric values, SmartEnum enables enums to include behavior, validation, and additional properties while preserving type safety and readability. The library is widely used in domain-driven design scenarios where business concepts require more expressive modeling than standard enums allow. Developers define custom enumerations by inheriting from a base SmartEnum class and declaring static instances, which can then be queried by name or value. The project also includes ecosystem support for serialization, Entity Framework persistence, and validation attributes, making it suitable for real-world enterprise applications. Overall, SmartEnum helps teams write more maintainable and intention-revealing domain code by replacing brittle primitive enums with extensible types.

Features

  • Strongly typed enum replacement
  • Object-oriented enum behavior
  • FromName and FromValue helpers
  • EF Core persistence support
  • JSON and serializer integrations
  • Domain-driven design friendly

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow SmartEnum

SmartEnum Web Site

Other Useful Business Software
Easily build robust connections between Salesforce and any platform Icon
Easily build robust connections between Salesforce and any platform

We help companies using Salesforce connect their data with a no-code Salesforce-native solution.

Like having Postman inside Salesforce! Declarative Webhooks allows users to quickly and easily configure bi-directional integrations between Salesforce and external systems using a point-and-click interface. No coding is required, making it a fast and efficient and as a native solution, Declarative Webhooks seamlessly integrates with Salesforce platform features such as Flow, Process Builder, and Apex. You can also leverage the AI Integration Agent feature to automatically build your integration templates by providing it with links to API documentation.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of SmartEnum!

Additional Project Details

Programming Language

C#

Related Categories

C# Frameworks

Registered

2026-02-26