Code cleanup.

This commit is contained in:
José Pedro 2018-09-28 20:03:07 +01:00
parent 14eb79c8ae
commit 3dfe554315
No known key found for this signature in database
GPG key ID: B8247B9301707B83

View file

@ -1,24 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.Build.Common
{
public static class ExtensionMethods
{
public static uint Sum(this IEnumerable<uint> source)
{
if (source == null)
{
throw new ArgumentNullException("source");
}
ulong sum = 0Lu;
foreach (uint val in source)
{
sum += val;
}
return (uint)sum;
}
}
}