Burtsev-Alexey/net-object-deep-copy

visited.Add() belongs directly after the clone

Opened this issue · 0 comments

Otherwise, you can construct an array that cannot be copied, like this:

        object[] test = new object[1];
        test[0] = test;
        test.Copy(); // CRASH