Burtsev-Alexey/net-object-deep-copy

The call is ambiguous between the following methods or properties: 'System.ArrayExtensions.ArrayExtensions.ForEach...

Closed this issue · 5 comments

Hello, i copy and pasted you code. The extension method appeared in Intellisense and seemed linked up as far as that goes. Complies fine, but i received this error when i tried to run the program.

Am i misunderstanding something, or how to use this properly? Thanks.

image

I was having issues with the same line, which is how I came across this comment. After you pasted, did you update the namespace name from "System" to your own namespace? That's what I did and I had issues with the same line. When I changed the namespace back to System and made sure I had the same references, everything worked great,

If you want to rename something do it properly.

I didn't rename mine. Just threw it in new file in the app code folder just as is. Still got the that message.

https://raw2.github.com/Burtsev-Alexey/net-object-deep-copy/master/ObjectExtensions.cs
Use this link to copy paste it, as is (you get this by using raw button in github UI).
You copy paste is incorrect, in you file line 70 is clonedArray.Foreach
Its line 35 in my file.

You need to learn the basic of programming first - The Copy Paste Style.
(joke)