[C#/Linq] Where절에서 Contains함수이용하여 필터링.


[C#/Linq] Where절에서 Contains함수이용하여 필터링.

public class Example { public static void Main() { Console.Write("> \n"); List markets = new List { new CodeStore { Name = "CK's", Items = new string[] { "kiwi", "cheery", "banana" } }, new CodeStore { Name = "PK's", Items = new string[] { "melon", "mango", "olive" } }, new CodeStore { Name = "ZK's", Items = new string[] { "kiwi", "apple", "orange" } }, }; // items에 특정 문자열이 포함되어 있는 것 찿기. IEnumer..


원문링크 : [C#/Linq] Where절에서 Contains함수이용하여 필터링.