{"id":19991638,"url":"https://github.com/ReubenBond/DeepCopy","last_synced_at":"2025-05-04T10:32:13.935Z","repository":{"id":41557051,"uuid":"109359262","full_name":"ReubenBond/DeepCopy","owner":"ReubenBond","description":"Simple \u0026 efficient library for deep copying .NET objects","archived":false,"fork":false,"pushed_at":"2023-11-14T09:31:00.000Z","size":50,"stargazers_count":226,"open_issues_count":7,"forks_count":33,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-12T17:46:32.886Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ReubenBond.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":"2017-11-03T06:14:06.000Z","updated_at":"2025-04-04T16:32:50.000Z","dependencies_parsed_at":"2024-06-18T14:06:35.953Z","dependency_job_id":null,"html_url":"https://github.com/ReubenBond/DeepCopy","commit_stats":{"total_commits":22,"total_committers":7,"mean_commits":3.142857142857143,"dds":0.5909090909090908,"last_synced_commit":"3abd67cb8c23261b60a47771ce0d667a68b10276"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReubenBond%2FDeepCopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReubenBond%2FDeepCopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReubenBond%2FDeepCopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReubenBond%2FDeepCopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReubenBond","download_url":"https://codeload.github.com/ReubenBond/DeepCopy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252320571,"owners_count":21729153,"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-13T04:51:50.918Z","updated_at":"2025-05-04T10:32:13.560Z","avatar_url":"https://github.com/ReubenBond.png","language":"C#","funding_links":[],"categories":["C\\#"],"sub_categories":[],"readme":"# DeepCopy\nSimple \u0026amp; efficient library for deep copying .NET objects\n\nDescribed in this blog post: https://reubenbond.github.io/posts/codegen-2-il-boogaloo\n\n## Installation:\nInstall via NuGet:\n```powershell\nPM\u003e Install-Package DeepCopy\n```\n\n## Usage:\n```C#\n// Add a using directive for DeepCopy.\nvar poco = new Poco();\nvar original = new[] { poco, poco };\n\nvar result = DeepCopier.Copy(original);\n\n// The result is a copy of the original.\nAssert.NotSame(original, result);\n\n// Because both elements in the original array point to the same object, \n// both elements in the copied array also point to the same object.\nAssert.Same(result[0], result[1]);\n```\n\nOptionally, classes can be marked using the `[Immutable]` attribute to tell `DeepCopy` to skip copying them and return them unmodified.\nObject can also be wrapped in `Immutable\u003cT\u003e` using `Immutable.Create(value)`.\n\nThe majority of this project was adapted from [`dotnet/orleans`](https://github.com/dotnet/orleans).\n\nPR's welcome!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FReubenBond%2FDeepCopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FReubenBond%2FDeepCopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FReubenBond%2FDeepCopy/lists"}