LINQ-EF

Igor Ostrovsky Offers Seven Unusual Uses for LINQ to Objects

posted May 23, 2008 8:26 AM by Roger Jennings   [ updated May 23, 2008 8:30 AM ]

Igor is an infrequent poster but his 7 tricks to simplify your programs with LINQ entry of May 18, 2008 contains the following interesting examples:

  • Initialize an array
  • Iterate over multiple arrays in a single loop
  • Generate a random sequence
  • Generate a string
  • Convert sequences or collections
  • Convert a value to a sequence of length 1
  • Iterate over all subsets of a sequence