Check out example codes for "c# find element by condition". It will help you in understanding the concepts better.

Code Example 1

int[] plantHeights = { 3, 6, 4, 1, 6, 8 };

// Find the first occurence of a plant height that is greater
// than 5 inches
int firstHeight = Array.Find(plantHeights, height => height>5);

Learn ReactJs, React Native from akashmittal.com