{"id":20163721,"url":"https://github.com/emik03/emik.sourcegenerators.implicit","last_synced_at":"2026-01-26T17:03:19.734Z","repository":{"id":189938977,"uuid":"675790771","full_name":"Emik03/Emik.SourceGenerators.Implicit","owner":"Emik03","description":"Source-generates implicit conversion operators that map to the respective constructors.","archived":false,"fork":false,"pushed_at":"2024-10-15T21:42:31.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T02:08:26.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Emik03.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Emik03","custom":"https://paypal.me/emik03"}},"created_at":"2023-08-07T18:21:54.000Z","updated_at":"2024-10-15T21:42:34.000Z","dependencies_parsed_at":"2024-07-08T23:12:09.819Z","dependency_job_id":"4f630883-1b19-496b-8090-fb77cd8c197c","html_url":"https://github.com/Emik03/Emik.SourceGenerators.Implicit","commit_stats":null,"previous_names":["emik03/emik.sourcegenerators.implicit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emik03%2FEmik.SourceGenerators.Implicit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emik03%2FEmik.SourceGenerators.Implicit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emik03%2FEmik.SourceGenerators.Implicit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emik03%2FEmik.SourceGenerators.Implicit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Emik03","download_url":"https://codeload.github.com/Emik03/Emik.SourceGenerators.Implicit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233753988,"owners_count":18724923,"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":[],"created_at":"2024-11-14T00:31:19.810Z","updated_at":"2025-09-21T12:33:05.608Z","avatar_url":"https://github.com/Emik03.png","language":"C#","funding_links":["https://github.com/sponsors/Emik03","https://paypal.me/emik03"],"categories":[],"sub_categories":[],"readme":"# Emik.SourceGenerators.Implicit\n\n[![NuGet package](https://img.shields.io/nuget/v/Emik.SourceGenerators.Implicit.svg?color=50fa7b\u0026logo=NuGet\u0026style=for-the-badge)](https://www.nuget.org/packages/Emik.SourceGenerators.Implicit)\n[![License](https://img.shields.io/github/license/Emik03/Emik.SourceGenerators.Implicit.svg?color=6272a4\u0026style=for-the-badge)](https://github.com/Emik03/Emik.SourceGenerators.Implicit/blob/main/LICENSE)\n\nSource-generates implicit conversion operators that map to the respective constructors.\n\nThis project has a dependency to [Emik.Morsels](https://github.com/Emik03/Emik.Morsels), if you are building this\nproject, refer to its [README](https://github.com/Emik03/Emik.Morsels/blob/main/README.md) first.\n\n---\n\n- [Example](#example)\n- [Contribute](#contribute)\n- [License](#license)\n\n---\n\n## Example\n\n```csharp\nA singularValuesWork = 1; // Valid!\nA tuplesWorkToo = (2, 3); // Valid!\n\n// Won't generate: annotated NoImplicitOperator.\n// A butThisDoesNot = (4, 5, 6);\n\n// Won't generate: would change visibility of constructor.\n// A andNeitherDoesThis = (7, 8, 9, 10); \n\n// Won't generate: annotated NoImplicitOperator.\n// B andNeitherDoesThisToo = 11; \n// B orThis = (12, 13);\n\npublic class A(int i)\n{\n    public A(int i, int j)\n       : this(0) { }\n\n    [NoImplicitOperator]\n    public A(int i, int j, int k)\n       : this(0) { }\n\n    private A(int i, int j, int k, int l)\n       : this(0) { }\n}\n\n[NoImplicitOperator]\npublic class B(int i)\n{\n    public B(int i, int j)\n       : this(0) { }\n}\n```\n\n## Contribute\n\nIssues and pull requests are welcome to help this repository be the best it can be.\n\n## License\n\nThis repository falls under the [MPL-2 license](https://www.mozilla.org/en-US/MPL/2.0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femik03%2Femik.sourcegenerators.implicit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femik03%2Femik.sourcegenerators.implicit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femik03%2Femik.sourcegenerators.implicit/lists"}