FastCloner – deep cloning done right

Deep cloning objects has been a major pain point for me for a long time. Recently, I’ve run into a case where after cloning a dictionary ContainsKey no longer worked for items cloned.

This inspired me to create a new library FastCloner for the modern…


This content originally appeared on DEV Community and was authored by Matěj Štágl

Deep cloning objects has been a major pain point for me for a long time. Recently, I've run into a case where after cloning a dictionary ContainsKey no longer worked for items cloned.

This inspired me to create a new library FastCloner for the modern .NET Core that would just work. Out of the box. Cyclic references, delegates, read-only collections... as many edge cases covered as possible.

There are still some scenarios, unmanaged memory for example, where cloning can go awry, but it should be a major improvement of the prior art. Feel free to check it out!

https://github.com/lofcz/FastCloner


This content originally appeared on DEV Community and was authored by Matěj Štágl


Print Share Comment Cite Upload Translate Updates
APA

Matěj Štágl | Sciencx (2025-01-08T17:42:52+00:00) FastCloner – deep cloning done right. Retrieved from https://www.scien.cx/2025/01/08/fastcloner-deep-cloning-done-right/

MLA
" » FastCloner – deep cloning done right." Matěj Štágl | Sciencx - Wednesday January 8, 2025, https://www.scien.cx/2025/01/08/fastcloner-deep-cloning-done-right/
HARVARD
Matěj Štágl | Sciencx Wednesday January 8, 2025 » FastCloner – deep cloning done right., viewed ,<https://www.scien.cx/2025/01/08/fastcloner-deep-cloning-done-right/>
VANCOUVER
Matěj Štágl | Sciencx - » FastCloner – deep cloning done right. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/08/fastcloner-deep-cloning-done-right/
CHICAGO
" » FastCloner – deep cloning done right." Matěj Štágl | Sciencx - Accessed . https://www.scien.cx/2025/01/08/fastcloner-deep-cloning-done-right/
IEEE
" » FastCloner – deep cloning done right." Matěj Štágl | Sciencx [Online]. Available: https://www.scien.cx/2025/01/08/fastcloner-deep-cloning-done-right/. [Accessed: ]
rf:citation
» FastCloner – deep cloning done right | Matěj Štágl | Sciencx | https://www.scien.cx/2025/01/08/fastcloner-deep-cloning-done-right/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.