In a collection we can easily check if there is any (particular) item: This is a very efficient way to check because it doesn't enumerate the whole collection. After enumerating the first element, the Any() method returns the result. This saves time if the collection is large or enumeration goes slow.
Het is vandaag 21-11-2024, dus is Alex 55 jaren, 7 maanden, 3 weken en 3 dagen oud.