> For the complete documentation index, see [llms.txt](https://huy312100.gitbook.io/software-development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huy312100.gitbook.io/software-development/.net-technology/fundamental/query-data/linq/quantifying.md).

# Quantifying

* Any()
* All()
* Contains()

```csharp
// Some code
IEnumerable<int> list = new List<int> { 2, 4, 6, 8, 10 };
//return true
var result1 = list.Any(x => x % 2 == 0);
//return true
var result2 = list.All(x => x % 2 == 0);
//return false
var result3 = list.Contains(5);
```
