diff options
author | Jb Evain <jbevain@gmail.com> | 2008-05-27 23:28:19 +0400 |
---|---|---|
committer | Jb Evain <jbevain@gmail.com> | 2008-05-27 23:28:19 +0400 |
commit | 1e9b72515207e3c8f534c679fcb63bd7939eee8f (patch) | |
tree | 2495f0c943e2a1ff9901690eb3798821a1b753ae /mcs/class/System.Core/System.Linq/Enumerable.cs | |
parent | d7f1f90172a25c0195182d02ed0475df157216a8 (diff) |
2008-05-27 Jb Evain <jbevain@novell.com>
* Enumerable.cs (Sum): don't throw if source is empty.
Fixes #394827.
svn path=/trunk/mcs/; revision=104189
Diffstat (limited to 'mcs/class/System.Core/System.Linq/Enumerable.cs')
-rw-r--r-- | mcs/class/System.Core/System.Linq/Enumerable.cs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mcs/class/System.Core/System.Linq/Enumerable.cs b/mcs/class/System.Core/System.Linq/Enumerable.cs index dfcb152b9fd..dea5cd399c4 100644 --- a/mcs/class/System.Core/System.Linq/Enumerable.cs +++ b/mcs/class/System.Core/System.Linq/Enumerable.cs @@ -1965,9 +1965,6 @@ namespace System.Linq ++counter; } - if (counter == 0) - throw new InvalidOperationException (); - return total; } |