
How to describe Deep Copy and Shallow Copy for a job interview
This is a "Gotcha" interview question because an interviewer may want to test your deep knowledge of how copying in C# and .NET works. To start, the assignment or "=" operator does not actually make a copy. It only takes a new variable and references the memory location of the original value. If you change the original variable, the copy will also be changed because it is referencing the same place. This will result in some really strange bugs. To make an genuine copy or c