// The System.Array type does not seem to implement the correct
// infrastructure for query expressions!
public abstract class Array : ICloneable, IList, ICollection, IEnumerable
{
...
}
While System.Array does not directly implement the IEnumerable interface, it indirectly
gains the required functionality of this type (as well as many other LINQ-centric members) via the
static System.Linq.Enumerable class type. This type defined a good number of generic extension
methods (such as Aggregate(), First(), Max(), etc.), which System.Array (and other
types) acquire in the background. Thus, if you apply the dot operator on the currentVideoGames
local variable, you will find a good number of members not found within the formal definition of
System.Array (see Figure 14-4).
Figure 14-4.
The System.Array type has been extended with members of System.Linq.Enumerable.
Do'stlaringiz bilan baham: |