rw submitted these extension methods

  • Aggregate

    Since System.Linq.Enumerable.Aggregate throws a System.InvalidOperationException in case the given list is empty you can't use this function in a complex linq expression. This aggregate version simply returns a defaultvalue if the list is empty
    C# System.Collections.Generic.IEnumerable<T> RW

 

;