visited.Add() belongs directly after the clone
Opened this issue · 0 comments
jpmikkers commented
Otherwise, you can construct an array that cannot be copied, like this:
object[] test = new object[1];
test[0] = test;
test.Copy(); // CRASH