.NET LINQ – WHERE

WHERE is used to get things from a list that is a certain way. In other words, WHERE filters elements from a collection to satisfy a specified condition. For example, you might want to find every dog who’s owner is Michael. To accomplish this, we use so-called Lambda Expressions which comprises the LINQ language. } […]

.NET LINQ – CONTAINS

CONTAINS is used to see if something exists within a list. In other words, CONTAINS is used to check if any elements in a collection satisifies a specified value. For example, you might want to see if a dog with a specific name exists. What is the difference between ANY and CONTAINS? ANY and CONTAINS […]

.NET LINQ – ANY

ANY is used to see if something is true or false in a list. In other words, ANY is used to find if a bool condition is satisfied on any item in a collection. For example, you might want to find if a dog exists that is of the age of 4. Or if a […]

.NET LINQ – ALL

ALL is used to see if everything is true or false in a list. In other words, ALL is used to check if all elements in a collection satisfies a specified condition. For example, you might want to see if all dogs in a list is over 2 years old. To accomplish this, we use […]