I have the following code, in which I want to verify if the the string called value matches an element contained in stringArray.
string[] stringArray = { "text1", "text2", "text3", "text4" };
string value = "text1";
if ( /* ______________ */) // if value exists in stringArray
Console.WriteLine("True");
else
Console.WriteLine("False");
Is there a method I could use to execute this?