I have a string array for example:
string[] myStrings = {"I want to take this string","This is not interesting"}
I want to check the string array if it contains a value and then return the entire string that contains it.
Example:
var index = Array.FindIndex(stringArray, x => x == stringArray.Contains("want"));
After this I want to return the string: I want to take this string since this contains the keyword I searched for.
How can I archieve this result?