Whenever I use "for each" on an IList<> I get CS0278


                    foreach (string file in files)
                        runtime.Import(file);


Katahdin.Debugger/RuntimeThread.cs(65,21): warning CS0278: `System.Collections.Generic.IList<string>' contains ambiguous implementation of `enumerable' pattern. Method `System.Collections.IEnumerable.GetEnumerator()' is ambiguous with method `System.Collections.Generic.IEnumerable<string>.GetEnumerator()' /Library/Frameworks/Mono.framework/Versions/1.2.2.1/lib/mono/2.0/ mscorlib.dll (Location of the symbol related to previous warning) /Library/Frameworks/Mono.framework/Versions/1.2.2.1/lib/mono/2.0/ mscorlib.dll (Location of the symbol related to previous warning)

I searched in the bug database and found 80408, but in my case it's applying to the standard libraries, not user defined code.

What's going wrong?

Thanks

Chris Seaton
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to