mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-22 22:09:12 +00:00
Code cleanup.
This commit is contained in:
parent
14eb79c8ae
commit
3dfe554315
1 changed files with 0 additions and 24 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue