📌  相关文章
📜  如何检查一个整数是否在数组c#代码示例中

📅  最后修改于: 2022-03-11 14:48:46.889000             🧑  作者: Mango

代码示例2
//Add necessary namespace
using System.Linq;
//Example
string[] printer = {"jupiter", "neptune", "pangea", "mercury", "sonic"};
//using .Contains() method
if(printer.Contains("jupiter"))
{
    Process.Start("BLAH BLAH CODE TO ADD PRINTER VIA WINDOWS EXEC"");
}