IEnumerable vs IQueryable

IEnumerable – query will be executed in the memory, LINQ-to-object

IQueryable – query will be executed in the database, LINQ-to-SQL, Entity Framework

Both will give you deferred query

Advertisements

querySelector

Quite useful javascript function for retieving the first DOM element that matches the group of CSS selector(s).

document.querySelector("#elementId");
myDiv.querySelector(".myClass");
myDiv.querySelector("p span");