Posted on: 7/9/2015 10:00:51 PM | Views : 705

I get an error when attempting to implement an example that demonstrates how the orderby clause in a LINQ query is used to sort strings in an array in ascending order.  The error states: “The non-generic type 'System.Collections.IEnumerable' cannot be used with type arguments.”  This error refers to my attempt to sort names alphabetically with the following example:
 
IEnumerable<string> query = from word in words
                            orderby Icnt
                            select word;
 
I even unsuccessfully attempting to include the following using statement in an attempt to rectify this problem: “using System.Collections.IEnumera ...

Go to the complete details ...