{"id":18905481,"url":"https://github.com/milandjurdjevic/cenum","last_synced_at":"2025-04-15T04:31:12.317Z","repository":{"id":204983018,"uuid":"712673883","full_name":"milandjurdjevic/cenum","owner":"milandjurdjevic","description":"Object oriented alternative to C# enum","archived":true,"fork":false,"pushed_at":"2024-05-03T23:34:17.000Z","size":224,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T18:17:33.205Z","etag":null,"topics":["csharp","ddd","dotnet","enum","enumeration","oop","sourcegenerator"],"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/milandjurdjevic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2023-11-01T00:28:21.000Z","updated_at":"2024-08-18T13:38:04.000Z","dependencies_parsed_at":"2024-11-08T09:12:19.075Z","dependency_job_id":"8e7d7cb8-002d-49cf-b753-4d19149117e8","html_url":"https://github.com/milandjurdjevic/cenum","commit_stats":null,"previous_names":["milandjurdjevic/cenum"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milandjurdjevic%2Fcenum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milandjurdjevic%2Fcenum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milandjurdjevic%2Fcenum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milandjurdjevic%2Fcenum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milandjurdjevic","download_url":"https://codeload.github.com/milandjurdjevic/cenum/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249006391,"owners_count":21197263,"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","ddd","dotnet","enum","enumeration","oop","sourcegenerator"],"created_at":"2024-11-08T09:12:08.092Z","updated_at":"2025-04-15T04:31:12.114Z","avatar_url":"https://github.com/milandjurdjevic.png","language":"C#","readme":"# Cenum [![latest version](https://img.shields.io/nuget/v/cenum)](https://www.nuget.org/packages/cenum)\n\nObject-oriented alternative to C# enum - base for defining enumerations as classes with fields, properties and methods.\n\n## Motivation\n\nInstead of being limited to a fixed set of integral values, imagine if enums were a fixed set of\nobjects. They could have fields, properties and methods - just as other types do.\nThe only difference would be that there would only ever be one instance for each value.\n\n## Usage\n\nTo lear more about the library usage, check the [documentation](src/Cenum/README.md#usage) link.\n\n## Benchmark\n\n_Enumerate with foreach loop over 10 enumeration values_\n\n| Method    |     Mean |    Error |   StdDev |   Gen0 | Allocated |\n|-----------|---------:|---------:|---------:|-------:|----------:|\n| Enumerate | 46.17 ns | 0.474 ns | 0.443 ns | 0.0051 |      32 B |\n\n### Legends\n\n- Mean: Arithmetic mean of all measurements\n- Error: Half of 99.9% confidence interval\n- StdDev: Standard deviation of all measurements\n- Gen0: GC Generation 0 collects per 1000 operations\n- Allocated: Allocated memory per single operation (managed only, inclusive, 1KB = 1024B)\n- 1 ns: 1 Nanosecond (0.000000001 sec)\n\n### Device\n\n- Chip: Apple M1 Pro\n- Memory: 16 GB\n- OS: Sonoma 14.1.2\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for more details.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilandjurdjevic%2Fcenum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilandjurdjevic%2Fcenum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilandjurdjevic%2Fcenum/lists"}