{"id":3327342,"name":"stringenum","ecosystem":"nuget","description":"StringEnum is a base class for creating string-valued enums in .NET.\n\nFeatures\n- Your StringEnum interface looks similar to a regular enum\n- Provides static Parse() and TryParse() methods and implicit cast to string.\n- Intellisense will suggest the enum name if the class is annotated with the xml comment `\u003ccompletitionlist\u003e`. (Works in both C# and VB)\n\nUsage:\n\n///\u003ccompletionlist cref=\"HexColor\"/\u003e \nclass HexColor : StringEnum\u003cHexColor\u003e\n{\n    public static readonly HexColor Blue = Create(\"#FF0000\");\n    public static readonly HexColor Green = Create(\"#00FF00\");\n    public static readonly HexColor Red = Create(\"#000FF\");\n}\n\n// Static Parse Method\nHexColor.Parse(\"#FF0000\") // =\u003e HexColor.Red\nHexColor.Parse(\"#ff0000\", caseSensitive: false) // =\u003e HexColor.Red\nHexColor.Parse(\"invalid\") // =\u003e throws InvalidOperationException\n\n// Static TryParse method.\nHexColor.TryParse(\"#FF0000\") // =\u003e HexColor.Red\nHexColor.TryParse(\"#ff0000\", caseSensitive: false) // =\u003e HexColor.Red\nHexColor.TryParse(\"invalid\") // =\u003e null\n\n// Conversion from your `StringEnum` to `string`\nstring myString1 = HexColor.Red.ToString(); // =\u003e \"#FF0000\"\nstring myString2 = HexColor.Red; // =\u003e \"#FF0000\" (implicit cast)","homepage":"https://github.com/gerardog/StringEnum","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/gerardog/StringEnum","keywords_array":["string","valued","enum","enumstring","stringenum"],"namespace":null,"versions_count":3,"first_release_published_at":"1900-01-01T00:00:00.000Z","latest_release_published_at":"2019-10-23T14:54:17.533Z","latest_release_number":"0.1.0","last_synced_at":"2026-04-03T19:31:39.209Z","created_at":"2022-04-10T17:22:25.443Z","updated_at":"2026-04-03T19:32:44.264Z","registry_url":"https://www.nuget.org/packages/stringenum/","install_command":"Install-Package stringenum","documentation_url":null,"metadata":{"copyright":"2019 Gerardo Grignoli","owners":"Gerardo Grignoli","license_info":{"type":"expression","text":"MIT","version":null},"license_url":"https://licenses.nuget.org/MIT","require_license_acceptance":false,"repository":{"type":"git","url":"https://github.com/gerardog/StringEnum","branch":null,"commit":null},"development_dependency":false,"serviceable":false,"framework_assemblies":[],"package_types":[],"dependency_summary":{"total_dependency_groups":1,"target_frameworks":[".NETStandard1.0"],"total_dependencies":1}},"repo_metadata":{"id":88985904,"uuid":"216344827","full_name":"gerardog/StringEnum","owner":"gerardog","description":"StringEnum is a base class for creating string-valued enums. You can copy/paste it into your projects or install via NuGet..","archived":false,"fork":false,"pushed_at":"2022-07-10T17:56:23.000Z","size":73,"stargazers_count":18,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-20T01:20:56.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gerardog.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":"2019-10-20T10:36:33.000Z","updated_at":"2024-11-20T18:27:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"b20c0657-84c7-40e1-bbbf-3bd1463ff546","html_url":"https://github.com/gerardog/StringEnum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gerardog/StringEnum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerardog%2FStringEnum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerardog%2FStringEnum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerardog%2FStringEnum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerardog%2FStringEnum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gerardog","download_url":"https://codeload.github.com/gerardog/StringEnum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerardog%2FStringEnum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27707788,"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","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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"},"owner_record":{"login":"gerardog","name":"Gerardo Grignoli","uuid":"3901474","kind":"user","description":"Software developer from Argentina.","email":"","website":null,"location":"Buenos Aires, Argentina","twitter":"gerardo_gr","company":null,"icon_url":"https://avatars.githubusercontent.com/u/3901474?u=01af216cf93d0df0819155c747ac596f26485f38\u0026v=4","repositories_count":3,"last_synced_at":"2023-02-27T13:30:49.535Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/gerardog","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-10T21:29:10.351Z","updated_at":"2023-02-27T13:30:49.539Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gerardog","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gerardog/repositories"},"tags":[]},"repo_metadata_updated_at":"2026-04-03T19:32:44.243Z","dependent_packages_count":0,"downloads":127765,"downloads_period":"total","dependent_repos_count":1,"rankings":{"downloads":6.620235263342898,"dependent_repos_count":7.008168237900951,"dependent_packages_count":20.713146856577517,"stargazers_count":6.709656955156137,"forks_count":7.310313479008744,"docker_downloads_count":null,"average":9.67230415839725},"purl":"pkg:nuget/stringenum","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/nuget/stringenum","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/nuget/stringenum","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/nuget/stringenum/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-01T07:31:43.308Z","issues_count":1,"pull_requests_count":2,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":770771.5,"issues_closed_count":0,"pull_requests_closed_count":2,"pull_request_authors_count":2,"issue_authors_count":1,"avg_comments_per_issue":0.0,"avg_comments_per_pull_request":0.5,"merged_pull_requests_count":2,"bot_issues_count":0,"bot_pull_requests_count":1,"past_year_issues_count":1,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":0.0,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerardog%2FStringEnum/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/stringenum/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/stringenum/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/stringenum/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/stringenum/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/stringenum/codemeta","maintainers":[{"uuid":"GerardoGrignoli","login":"GerardoGrignoli","name":null,"email":null,"url":null,"packages_count":2,"html_url":"https://www.nuget.org/profiles/GerardoGrignoli","role":null,"created_at":"2022-11-18T17:49:47.185Z","updated_at":"2022-11-18T17:49:47.185Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/nuget.org/maintainers/GerardoGrignoli/packages"}]}