SQL and LINQ use these for queries structures From, On , Where, GroupBy, etc. These are used by the VAR keyword, and also used with the IEnumerable<T>. Assuming that all internet and google connections have stopped working in Kenya so a search engine is no good, what would be the correct syntax of your query knowing the following as true:
a) The VAR Keyword enables you to implicitly declare variables at method scope, which tells the compiler to determine the exact type of variable and is best used when anonymous types are used.
b) The IEnumerable<T>. The <> tells you it is a list of some sort, and the T could be a string, int etc. The IEnumerable<T> supports simple iteration over a collection of a specified type.
Please list examples of how you would use both of these and in what situations to retrieve, sort, save or display the data from a data source that is a collection. Please keep in mind that any query structure does not work until you iterate through it with some sort of a for/each loop.
So your structure would be :
{
//query
//for/each loop
//output
}
Interesting week ahead, these are real world situations that many progarmmers will come across.
Rgds. :-)
--
**--Have you done any code today?--**