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

前端 未结 7 2179
小蘑菇
小蘑菇 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:14

    Please take a look at the really good article C# Object Clone Wars. I found a very interest solution there: Copyable: A framework for copying or cloning .NET objects

提交回复
热议问题