Variable which is a copy of another, it changes the original
I change the value of a variable which is a copy of another, it changes the original variable also, i am using copy from one object to another , i checked this is causing due to ref type but after reintialising to another object issue was the same. Please suggest.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Feb 20, 2020, 4:23 AM EST
Sankar B10 reputationPosted Feb 20, 2020, 8:13 PM EST
MemberwiseClone()Creates a shallow copy of the current System.ObjectVishvjit ShindeRank #3,119 · 459 reputationPosted Mar 8, 2020, 9:53 PM EDT