.Net Deep cloning - what is the best way to do that?

前端 未结 7 2180
小蘑菇
小蘑菇 2020-12-05 20:39

I need to perform deep cloning on my complex object model. What do you think is the best way to do that in .Net?
I thought about serializing / Deserializing
no need

7条回答
  •  我在风中等你
    2020-12-05 21:19

    You could try AltSerialize which in many cases is faster than the .Net serializer. It also provides caching and custom attributes to speed up serialization.

提交回复
热议问题