Select and SelectMany: LINQ projection operator

Projection transforms the query result into the form defined by the developer. There are two projection operators in LINQ Let us say, there is a class And a function returning List<Student> as below, Select operator Below query will return name and roll number of all the students. Output Below query will project name of the … Continue reading Select and SelectMany: LINQ projection operator

LINQ to Object Part #1: Projection

Objective In this article, I am going to show, how we could achieve projection in LINQ to object. I will explain different types of projection and how to achieve them over a collection using LINQ. I have created two classes for my explanation purpose. Student class is having details of students and Hostel class is … Continue reading LINQ to Object Part #1: Projection