Let's say I need to use the Enumerable.All method found in System.Linq, but how do I use this collection?
When I try to run the code, I get the following error message:
Error (CS1061): "System.Array" does not contain a definition for "All". Could not find extension method "All" accepting first argument of type "System.Array" (missing using directive or assembly reference?)
And I have the same problem with the System.Collections.Generic.
Let's say I need to use the
Enumerable.Allmethod found inSystem.Linq, but how do I use this collection?When I try to run the code, I get the following error message:
Error (CS1061): "System.Array" does not contain a definition for "All". Could not find extension method "All" accepting first argument of type "System.Array" (missing using directive or assembly reference?)And I have the same problem with the
System.Collections.Generic.