Answers for "how to check contains in two aint arrays in c#"

C#
11

how to check if a value is inside an array c#

/*Make sure to add 
using System.Linq;
*/


string[] printer = {"jupiter", "neptune", "pangea", "mercury", "sonic"};
if(printer.Contains("jupiter"))
{
    Process.Start("BLAH BLAH CODE TO ADD PRINTER VIA WINDOWS EXEC"");
}
Posted by: Guest on March-31-2020
0

see if two string arrays are equal c#

bool areEqual = a.SequenceEqual(b);
Posted by: Guest on June-15-2020

Code answers related to "how to check contains in two aint arrays in c#"

C# Answers by Framework

Browse Popular Code Answers by Language