how to cheeck valure exsutng in list of string c# code example Example: list contains type c# if (within.OfType<Ball>().Any())