Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jbevain@gmail.com>2008-05-27 23:28:19 +0400
committerJb Evain <jbevain@gmail.com>2008-05-27 23:28:19 +0400
commit1e9b72515207e3c8f534c679fcb63bd7939eee8f (patch)
tree2495f0c943e2a1ff9901690eb3798821a1b753ae /mcs/class/System.Core/System.Linq/Enumerable.cs
parentd7f1f90172a25c0195182d02ed0475df157216a8 (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.cs3
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;
}