Giter Club home page Giter Club logo

Comments (5)

sekulicb avatar sekulicb commented on September 28, 2024

Just to add, I'm not coping an object, but the collection of it (cache that we use in the app)

from deepcloner.

akaBilih avatar akaBilih commented on September 28, 2024

Got the same error. Were you able to fix it?

from deepcloner.

sekulicb avatar sekulicb commented on September 28, 2024

Sorry, I have finalized that project at the end of 2021. I think that at some point I changed the library to FastDeepCloner or maybe you have to for each in the object that you are trying to clone, and check something like property.CanRead() or something similar to be able to actually clone the property of the object itself. Hope that helps. Good luck.

from deepcloner.

force-net avatar force-net commented on September 28, 2024

This project copies fields (not properties) by design. At start, main idea of project was in fast cloning simple DTO objects. But I try to add support to clone everything. Unfortunately, there are a lot of issues with native resources in .NET and complex objects, when they have some inner field, that references all world.
In most complex cases it is hard to correctly clone objects without knowledge about structure of specific library and how it handles objects.
I have some ideas, how it can be realized, but I do not have time to do this (I really want to find spare time for this, but currently it is impossible for me).
So, I can give advices on github and think about how to implement things in my head :)

from deepcloner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.