Comments (5)
Just to add, I'm not coping an object, but the collection of it (cache that we use in the app)
from deepcloner.
Got the same error. Were you able to fix it?
from deepcloner.
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.
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)
- Request for info (country of origin) HOT 4
- HashSet contains method return false after deep clone HOT 8
- Support for cloning child to parent type HOT 2
- the program crashed when i deepclone opencvsahrp Mat HOT 3
- How to only clone the common properties? HOT 4
- Latest change has not been published to NuGet HOT 1
- Why version 0.X? HOT 3
- program crashed when deepclone multidimensional zero-length array HOT 1
- Dependency on BinaryFormatter? HOT 1
- Possible Heap Corruption and Garbage Collection Interference... HOT 4
- When Object have navigation property, DeepClone throw exception. HOT 5
- Better error reporting HOT 1
- No stable cloning of `System.Drawing.Font` object HOT 6
- Memory corruption and program crash when cloning TaskCancelledException
- NHibernate Invalid cast exception
- Can't clone dictionary HOT 4
- Clone Action<T> delegate is incorrect
- Netstandard upgrade HOT 2
- Replace NuGet references with known security risks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepcloner.