myList.Any() doesn't work

Hello,

The list is working otherwise, as in, I can add and delete elements from it. However, when I try to test to see if there is anything in it using Any() and Any() I get

System.Collections.Generic.List does not contain a definition for ‘Any’

Thanks.

Not sure why this doesn’t work.

However you can get the same result using

myList.Count != 0

Without seeing any code, I would guess that you forgot to import System.Linq.