Reply to comment

Yeah, you did

This isn't about implementing the collection. It's about doing something with it. It's the difference between:

foreach (var user in users.Where(x=>x.Name == "Roger"))
    drinks.Invite(user);

...and...

users.Where(x=>x.Name == "Roger").ForEach(user => drinks.Invite(user));

Admittedly, it's not a huge difference, and Eric Lippert doesn't like it, but it does come in useful for some things.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <b> <blockquote> <br> <code> <dd> <dl> <dt> <hr> <h1> <h2> <h3> <i> <img> <li> <ol> <p> <pre> <table> <td> <th> <tr> <tt> <u> <ul>
  • Images can be added to this post.

More information about formatting options