{"id":25615375,"url":"https://github.com/jason-c-daniels/jcd.richenumerations","last_synced_at":"2026-06-20T22:31:30.161Z","repository":{"id":223569601,"uuid":"758628887","full_name":"jason-c-daniels/Jcd.RichEnumerations","owner":"jason-c-daniels","description":"A library to ease the implementation and use of Rich Enumerations popularized by DDD.","archived":false,"fork":false,"pushed_at":"2024-04-14T08:14:25.000Z","size":475,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T10:15:28.964Z","etag":null,"topics":["csharp-lib","ddd","dotnet","richenum","richenumerations"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jason-c-daniels.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":null,"ko_fi":"jasoncdaniels"}},"created_at":"2024-02-16T18:16:47.000Z","updated_at":"2024-07-27T20:29:20.423Z","dependencies_parsed_at":null,"dependency_job_id":"a961684c-c413-4093-a7d2-8fac1dc2d687","html_url":"https://github.com/jason-c-daniels/Jcd.RichEnumerations","commit_stats":null,"previous_names":["jason-c-daniels/jcd.richenumerations"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-c-daniels%2FJcd.RichEnumerations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-c-daniels%2FJcd.RichEnumerations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-c-daniels%2FJcd.RichEnumerations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-c-daniels%2FJcd.RichEnumerations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jason-c-daniels","download_url":"https://codeload.github.com/jason-c-daniels/Jcd.RichEnumerations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240119098,"owners_count":19750599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp-lib","ddd","dotnet","richenum","richenumerations"],"created_at":"2025-02-22T03:19:35.198Z","updated_at":"2026-05-15T21:30:20.776Z","avatar_url":"https://github.com/jason-c-daniels.png","language":"C#","funding_links":["https://ko-fi.com/jasoncdaniels"],"categories":[],"sub_categories":[],"readme":"# Jcd.RichEnumerations\n\nA *netstandard2.0* library that provides DDD-style rich enumeration base types for both _plain old\nclasses_ and `record` types.\n\n## Examples\n\n```csharp\n// define the rich enum type.\n\nusing Jcd.RichEnumerations.Wrappers\n\n// Derive from a simplifying wrapper. In this case one that already defines the description property.\npublic class MyRichEnum(int value, string description) : DescribedRichEnum\u003cMyRichEnum\u003e(value,description)\n{\n   public static readonly MyRichEnum Item1 = new(1, \"Item 1\");\n   public static readonly MyRichEnum Item2 = new(2, \"Item 2\");\n   public static readonly MyRichEnum Item3 = new(3, \"Item 3\");\n}\n\n// use the values\nint userInput = GetUserInput();\n\n// use the conversion operator to convert the raw number into an instance of the RichEnum.\nvar  ev = (MyRichEnum) userInput;\n\nif (ev == MyRichEnum.Item1) {\n   //.. do something specific to Item1 being selected.\n}\n\n```\n\n## Badges\n\n[![GitHub](https://img.shields.io/github/license/jason-c-daniels/Jcd.RichEnumerations)](https://github.com/jason-c-daniels/Jcd.RichEnumerations/blob/main/LICENSE)\n[![Build status](https://ci.appveyor.com/api/projects/status/sbmfvmr1jmcf1pic?svg=true)](https://ci.appveyor.com/project/jason-c-daniels/https://ci.appveyor.com/project/jason-c-daniels/jcd-richenumerations)\n[![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/jason-c-daniels/Jcd.RichEnumerations)](https://www.codefactor.io/repository/github/jason-c-daniels/Jcd.RichEnumerations)\n\n[![MyGet](https://img.shields.io/myget/jason-c-daniels/v/Jcd.RichEnumerations?logo=nuget)](https://www.myget.org/feed/jason-c-daniels/package/nuget/Jcd.RichEnumerations)\n[![Nuget](https://img.shields.io/nuget/v/Jcd.RichEnumerations?logo=nuget)](https://www.nuget.org/packages/Jcd.RichEnumerations)\n\n[![API Docs](https://img.shields.io/badge/Read-The%20API%20Documentation-blue?style=for-the-badge)](https://github.com/jason-c-daniels/Jcd.RichEnumerations/blob/main/docs/api/index.md)\n[![User Guide](https://img.shields.io/badge/Read-The%20User%20Guide-green?style=for-the-badge)](https://github.com/jason-c-daniels/Jcd.RichEnumerations/blob/main/docs/user/index.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjason-c-daniels%2Fjcd.richenumerations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjason-c-daniels%2Fjcd.richenumerations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjason-c-daniels%2Fjcd.richenumerations/lists"}