Public · Protected · Private
Cross JOIN in LINQ
Type: Public  |  Created: 2012-07-18  |  Frozen: Yes
« Previous Public Blog Next Public Blog »
Comments
  • string[] greetings = { "hello hi world", "hi LINQ", "test janaganamana" }; string[] words = { "hello", "test", "hi" }; var items = from s in greetings from t in words where s.Contains(t) select "\""+ s+"\"" + " has " + t; foreach (var item in items) Console.WriteLine(item);
    2012-07-18 11:41
This blog is frozen. No new comments or edits allowed.