The nondeferred Standard Query Operators are organized by their purposes in this section.
The following conversion operators provide a simple and convenient way of converting sequences to other collection types.
The ToArray operator creates an array of type T from an input sequence of type T.
There is one prototype I will cover.
public static T ToArray<T>( this IEnumerable<T> source);
This operator takes an input sequence named source, of type T elements, and returns an array of type T elements.
ArgumentNullException is thrown if the source argument is null.
For an example demonstrating the ToArray operator, I need a sequence ...