Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Be aware that this solution will cause the entire contents of the results list to be held in memory, negating the benefits of IEnumerable.

    This could lead to out-of-memory exceptions when when dealing with lots of elements, and especially when dealing with large objects.

    It is a non-issue if the incoming enumerables are expected to be of reasonable size.