{"id":13629550,"url":"https://github.com/mostmand/Cloneable","last_synced_at":"2025-04-17T09:34:43.917Z","repository":{"id":47768463,"uuid":"298699010","full_name":"mostmand/Cloneable","owner":"mostmand","description":"Auto generate Clone method using C# Source Generator","archived":false,"fork":false,"pushed_at":"2023-04-01T02:16:34.000Z","size":55,"stargazers_count":70,"open_issues_count":10,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-01T22:43:52.174Z","etag":null,"topics":["csharp-sourcegenerator"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mostmand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-09-25T23:22:51.000Z","updated_at":"2024-07-16T15:39:53.000Z","dependencies_parsed_at":"2024-01-11T13:20:13.032Z","dependency_job_id":null,"html_url":"https://github.com/mostmand/Cloneable","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostmand%2FCloneable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostmand%2FCloneable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostmand%2FCloneable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostmand%2FCloneable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mostmand","download_url":"https://codeload.github.com/mostmand/Cloneable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223751229,"owners_count":17196590,"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-sourcegenerator"],"created_at":"2024-08-01T22:01:13.377Z","updated_at":"2024-11-08T20:31:13.108Z","avatar_url":"https://github.com/mostmand.png","language":"C#","readme":"# Cloneable\nAuto generate Clone method using C# Source Generator\n\nThere are times you want to make a clone of an object. You can implement a clone method, but when a developer adds a new Field or Property the clone method should be changed too. Another way is to use reflection which is not performant. \nThis source generator saves your time by generating the boilerplate code for cloning an object.\n\n### Installing Cloneable\nYou should install [Cloneable with NuGet](https://www.nuget.org/packages/Cloneable):\n\n    Install-Package Cloneable\n    \nOr via the .NET Core command line interface:\n\n    dotnet add package Cloneable\n\nEither commands, from Package Manager Console or .NET Core CLI, will download and install Cloneable and all required dependencies.\n\n### Usage\n\nYou can add clone method to a class by making it partial and adding the attribute `Cloneable` on top of it. An example is provided in Cloneable.Sample project.\n\nSource generators are introduced in dotnet 5.0. So make sure to have Visual Studio 16.8 or dotnet 5.0 sdk installed.\n\nHere is a simple example:\n\n```csharp\n[Cloneable]\npublic partial class Foo\n{\n    public string A { get; set; }\n    public int B { get; set; }\n}\n```\n\nFor more examples please visit the [sample project](https://github.com/mostmand/Cloneable/tree/master/Cloneable.Sample).\n","funding_links":[],"categories":["Source Generators","C#","Do not want to test 112 ( old ISourceGenerator )"],"sub_categories":["Other","1. [ThisAssembly](https://ignatandrei.github.io/RSCG_Examples/v2/docs/ThisAssembly) , in the [EnhancementProject](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementproject) category"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostmand%2FCloneable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmostmand%2FCloneable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostmand%2FCloneable/lists"}