I wonder what is the fastest way to do shallow copying in C#? I only know there are 2 ways to do shallow copy:
- MemberwiseClone
- Copy each field one by one (manual)
I found that (2) is faster than (1). I'm wondering if there's another way to do shallow copying?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…