Examveda

What is the purpose of the OfType operator in LINQ?

A. Filters the elements of a sequence based on their type

B. Returns the number of elements in a sequence

C. Converts a sequence to a List

D. Converts a sequence to an Array

Answer: Option A


Join The Discussion

Related Questions on LINQ (Language Integrated Query) in C Sharp