9.1 Fill in the blanks in each of the following statements:
Use the property of the List
class to find the number of elements in the List
.
The LINQ clause is used for filtering.
are classes specifically designed to store groups of objects and provide methods that organize, store and retrieve those objects.
To add an element to the end of a List
, use the method.
To get only unique results from a LINQ query, use the method.
9.2 State whether each of the following is true or false. If false, explain why.
The orderby
clause in a LINQ query can sort only in ascending order.
LINQ queries can be used on both arrays and collections.
The Remove
method of the List
class removes an element at a specific index.