{"id":13628976,"url":"https://github.com/usausa/common-code-generator","last_synced_at":"2025-09-15T14:43:15.253Z","repository":{"id":225763326,"uuid":"766490843","full_name":"usausa/common-code-generator","owner":"usausa","description":"🐰Common code generator.","archived":false,"fork":false,"pushed_at":"2025-03-10T04:07:08.000Z","size":109,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-03T17:48:42.707Z","etag":null,"topics":["codegenerator","source-generator","source-generators","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/usausa.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":"2024-03-03T12:18:05.000Z","updated_at":"2025-03-27T05:31:07.000Z","dependencies_parsed_at":"2025-01-10T11:29:19.107Z","dependency_job_id":"9a23488a-22df-442d-983b-199398ee649b","html_url":"https://github.com/usausa/common-code-generator","commit_stats":null,"previous_names":["usausa/common-code-generators","usausa/smart-net-generators"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fcommon-code-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fcommon-code-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fcommon-code-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fcommon-code-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usausa","download_url":"https://codeload.github.com/usausa/common-code-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254150569,"owners_count":22022981,"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":["codegenerator","source-generator","source-generators","sourcegenerator"],"created_at":"2024-08-01T22:01:00.771Z","updated_at":"2025-09-15T14:43:15.238Z","avatar_url":"https://github.com/usausa.png","language":"C#","readme":"# BunnyTail.CommonCode\n\n[![NuGet](https://img.shields.io/nuget/v/BunnyTail.CommonCode.svg)](https://www.nuget.org/packages/BunnyTail.CommonCode)\n\n## Reference\n\nAdd reference to CommonCodeGenerator and CommonCodeGenerator.SourceGenerator to csproj.\n\n```xml\n  \u003cItemGroup\u003e\n    \u003cPackageReference Include=\"BunnyTail.CommonCode\" Version=\"1.2.0\" /\u003e\n  \u003c/ItemGroup\u003e\n```\n\n## ToString\n\n### Source\n\n```csharp\n[GenerateToString]\npublic partial class Data\n{\n    public int Id { get; set; }\n\n    public string Name { get; set; } = default!;\n\n    public int[] Values { get; set; } = default!;\n\n    [IgnoreToString]\n    public int Ignore { get; set; }\n}\n```\n\n### Result\n\n```csharp\nvar data = new Data { Id = 123, Name = \"xyz\", Values = [1, 2] };\nvar str = data.ToString();\nAssert.Equal(\"{ Id = 123, Name = xyz, Values = [1, 2] }\", str);\n```\n","funding_links":[],"categories":["Content"],"sub_categories":["129. [CommonCodeGenerator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/CommonCodeGenerator) , in the [EnhancementClass](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementclass) category"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusausa%2Fcommon-code-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusausa%2Fcommon-code-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusausa%2Fcommon-code-generator/lists"}