none
What does this mean - LINQ supports abstraction RRS feed

Answers

  • It means Linq hides implementation details of any operation that you perform on a collection. For example, consider the below Linq query which gives all employees from employee collection whose last name is Smith.

    var allSmiths = from e in employeeList 
    where e.LastName == "Smith"
    select e;

    Behind the scene this query is going to iterate through collection, take each item, get last name, compare with 'Smith', then yield the items. But this implementation details are hidden from you. Instead you interact with above nice, readable abstraction.

    I hope this helps.


    Please mark this post as answer if it solved your problem. Happy Programming!

    Wednesday, October 2, 2013 2:45 AM