DEV Community

Matěj Štágl
Matěj Štágl

Posted on

2

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 .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

Top comments (1)

Collapse
 
j0nimost profile image
John Nyingi

This is amazing, great work

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay