From 1e9b72515207e3c8f534c679fcb63bd7939eee8f Mon Sep 17 00:00:00 2001 From: Jb Evain Date: Tue, 27 May 2008 19:28:19 +0000 Subject: 2008-05-27 Jb Evain * Enumerable.cs (Sum): don't throw if source is empty. Fixes #394827. svn path=/trunk/mcs/; revision=104189 --- mcs/class/System.Core/System.Linq/Enumerable.cs | 3 --- 1 file changed, 3 deletions(-) (limited to 'mcs/class/System.Core/System.Linq/Enumerable.cs') 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; } -- cgit v1.2.3