find if list contains element c# code example Example: list contains type c# if (within.OfType().Any())