Check out example codes for "c# check list of objects for value". It will help you in understanding the concepts better.

Code Example 1

if (within.OfType<Ball>().Any())

Code Example 2

var matches = myList.Where(p => p.Name == nameToExtract);

Learn ReactJs, React Native from akashmittal.com