{"id":13678838,"url":"https://github.com/unoplatform/Uno.CodeGen","last_synced_at":"2025-04-29T15:33:25.407Z","repository":{"id":40897411,"uuid":"119708503","full_name":"unoplatform/Uno.CodeGen","owner":"unoplatform","description":"A set of source generators for equality, immutability, ...","archived":false,"fork":false,"pushed_at":"2022-12-08T02:12:13.000Z","size":571,"stargazers_count":89,"open_issues_count":22,"forks_count":11,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-04-30T16:45:44.953Z","etag":null,"topics":["codegen","csharp","generator","msbuild","roslyn"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unoplatform.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"License.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-31T15:53:19.000Z","updated_at":"2024-03-29T02:02:22.000Z","dependencies_parsed_at":"2023-01-25T04:30:54.816Z","dependency_job_id":null,"html_url":"https://github.com/unoplatform/Uno.CodeGen","commit_stats":null,"previous_names":["nventive/uno.codegen"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unoplatform%2FUno.CodeGen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unoplatform%2FUno.CodeGen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unoplatform%2FUno.CodeGen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unoplatform%2FUno.CodeGen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unoplatform","download_url":"https://codeload.github.com/unoplatform/Uno.CodeGen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224179149,"owners_count":17269011,"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":["codegen","csharp","generator","msbuild","roslyn"],"created_at":"2024-08-02T13:00:58.898Z","updated_at":"2025-04-29T15:33:25.395Z","avatar_url":"https://github.com/unoplatform.png","language":"C#","funding_links":[],"categories":["C#"],"sub_categories":[],"readme":"# Uno CodeGen\n\n`Uno.CodeGen` is a set of tools to generate C# code in msbuild based projects.\n\n## Generate **Equality Members** for your _C#_ classes\n\n![Equality Members generation snippet](doc/assets/equality-snippet.png)\n\nFeatures:\n\n* Amazingly fast: absolutely **zero reflection at runtime**\n* Generates both `.Equals()` and `.GetHashCode()` overrrides\n* Generates equality (`==` and `!=`) operators\n* Implements `IEquatable\u003cT\u003e`\n* Works with derived classes\n* **Custom comparers** supported\n* Works with collection members (both same order and _unsorted_ equality)\n* Works with dictionary members (both same order and _unsorted_ equality)\n* Optional case insentive comparisons for strings\n* Optional support for _KeyEquality_ (see doc for more details)\n* Debuggable: You can put a breakpoint directly in the generated code\n* Highly configureable: Generated code provides a lot of useful tips (stripped in previous snippet)\n* [Documentation here](doc/Equality%20Generation.md) for Equality Members Generator\n\n## Create **truly Immutable Entities** in _C#_\n\n![Equality Members generation snippet](doc/assets/immutability-snippet.png)\n\nFeatures:\n\n* Automatic _Null object pattern_ generation\n* Automatic generation of `\u003cYourClass\u003e.Builder` nested class\n* Fluent `.With\u003cfield/property name\u003e()` generation of every members of your class\n* Amazingly fast: absolutely **zero reflection at runtime**\n* Works with generics \u0026 derived classes (even if they are from external assembly)\n* Optional support (_on_ by default) for `[GeneratedEquality]`\n* Transparent support for _Newtonsoft's JSON.NET_ (activated when detected, can be turned off)\n* Transparent support for _System.Text.Json_ (activated when detected, can be turned off)\n* Debuggable: You can put a breakpoint directly in the generated code\n* Validation to avoid mutable code in your class\n* Highly configureable: Generated code provides a lot of useful tips (stripped in previous snippet)\n* [Documentation here](doc/Immutable%20Generation.md) for Immutable Entities Generator\n\n## Available Generators\n\n| Generator | Triggering Attributes | Usage |    |\n| --------- | -------------------- | ----- | -- |\n| `ClassLifecycleGenerator` | `[ConstructorMethod]` `[DisposeMethod]` `[FinalizerMethod]` | Generate code to extend the lifecyle of a class. | [Documentation](doc/Class%20Lifecycle%20Generation.md) |\n| `CompilationReferencesListingGenerator` | _none_ | Generate a file without _useful_ code, containing only comments detailing references used to compile the project. | [Documentation](doc/Compilation%20References.md) |\n| `EqualityGenerator` | `[GenerateEquality]` | Generate code for efficient `.Equals()` members generation. | [Documentation](doc/Equality%20Generation.md) |\n| `ImmutableGenerator` | `[GenerateImmutable]` | Generate code to build truly immutable entities. | [Documentation](doc/Immutable%20Generation.md) |\n| `InjectableGenerator` | `[Inject]` | Generate code to resolve and inject dependencies. | [Documentation](doc/Injectable%20Generation.md) |\n\n## Nuget\n\n[![NuGet](https://buildstats.info/nuget/Uno.CodeGen?includePreReleases=true)](https://www.nuget.org/packages/Uno.CodeGen/)\n\n## FAQ\n[Read our FAQ here](doc/faq.md)\n\n# Have questions? Feature requests? Issues?\n\nMake sure to visit our [FAQ](doc/faq.md), [StackOverflow](https://stackoverflow.com/questions/tagged/uno-platform), [create an issue](https://github.com/nventive/Uno.CodeGen/issues) or [visit our gitter](https://gitter.im/uno-platform/Lobby).\n\n# Contributing\n\nRead our [contributing guide](CONTRIBUTING.md) to learn about our development process and how to propose bug fixes and improvements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funoplatform%2FUno.CodeGen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funoplatform%2FUno.CodeGen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funoplatform%2FUno.CodeGen/lists"}