net-object-deep-copy
net-object-deep-copy copied to clipboard
No overload for method 'ForEach' takes 1 arguments
Greetings All,
I took the latest code but I get this compile time error. Does anyone know why we are getting this issue? I appreciate your help.
Getting compile error in following line: clonedArray.ForEach((array, indices) => array.SetValue(InternalCopy(clonedArray.GetValue(indices), visited), indices));
Check the namespace you're using. It should be System
ForEach extension implemented in System.ArrayExtensions.ArrayExtensions class, located at the bottom in the same https://github.com/Burtsev-Alexey/net-object-deep-copy/blob/master/ObjectExtensions.cs file