如果比薩餅的成分存在於allIngred
之間,則結果將通過使用LINQ給出true
。我會如何去做這件事?使用LinQ代碼檢索bool結果
string[] allIngred = {
"oil", "yeast", "wheat-flour", "salt", "oil", "baking-powder",
"wheat-flour", "salt", "sugar", "milk"
};
string[] pizza = { "oil", "yeast", "wheat-flour", "salt" };