📌  相关文章
📜  检查字符串是否在字符串 [] c# - Lua 代码示例

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

代码示例2
string stringToCheck = "text1";
string[] stringArray = { "text1", "testtest", "test1test2", "test2text1" };
foreach (string x in stringArray)
{
    if (x == stringToCheck)
    {
        // Process...
    }
}