Leave a Reply

3 comments

  1. Somehow Microsoft has ‘forgotten’ a whole lot of usefull Extentsion methods in the framework. I would expect to find methods like this one in the next Framework version. Until then I will all your addition to my personal utility set.

    frankb Beantwoorden

  2. You are now my extension method god!! 🙂

    btw, List already has an AddRange method… So the canonical sample in the first paragraph is slightly off.

    Wouter

    Wouter Beantwoorden

  3. I agree with Frank, there’s loads more goodness to be added to linq. One of the things I like to see is the Each extension.

    public static void Each(this IEnumerable sequence,Action action)
    {
    foreach(T item in sequence)
    {
    action(T);
    }
    }

    willemm Beantwoorden