DeepCloner
DeepCloner copied to clipboard
When Object have navigation property, DeepClone throw exception.
System.StackOverflowException:“Exception_WasThrown” on internal static Func<T, DeepCloneState, T> GetClonerForValueType<T>().
Can you provide short example of code, which causes this error? Also, if it required, write dependent packages with version.
When dbcontext proxycreationenabled set to true,The result is System.Data.Entity.DynamicProxies objects,so Exception_WasThrown.
Interesting situation. I'll try to reproduce. Cloning generated objects can be tricky.
https://stackoverflow.com/questions/40509906/a-circular-reference-was-detected-while-serializing-an-object-of-type-system-da
It should be the same for DeepClone.
https://github.com/jiehanlin/deepclonerdemo
the demo,console no exception,but webproject have exception.