I'm using .Net core 2.2 and it's dependency injection. I also inject dependencies from third party libraries. I want to deep clone the object where dependencies are injected. Binary Serialization is not an option as classes from other libraries are not marked as Serializable
. Json serialization and Reflection cloning is not working as many classes do not have default constructors.
I looked at this, this and this but not helping
How should I deep clone objects?