net-object-deep-copy icon indicating copy to clipboard operation
net-object-deep-copy copied to clipboard

No overload for method 'ForEach' takes 1 arguments

Open panksgithub opened this issue 8 years ago • 2 comments

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));

panksgithub avatar Jun 30 '16 15:06 panksgithub

Check the namespace you're using. It should be System

f-ewald avatar Aug 15 '16 20:08 f-ewald

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

MNF avatar Jan 23 '18 12:01 MNF