Reference Article Today, while programming, I performed list conversion and simultaneously deleted items from the converted list.

List<XYZ> A = firList;
                A.RemoveAt(0);

I found that after deleting from A, the firList was also deleted. The specific reason hasn’t been investigated clearly yet. I assume it’s because of memory usage, causing both lists to operate simultaneously. The exact reason is not verified, leaving a note to update later.

                List<XYZ> newFirList = new List<XYZ>();
                newFirList.AddRange(firList);
                newFirList.RemoveAt(0);

Later, I used the clone operation on the firList so that the values of the two lists would not affect each other.