Quantcast
Channel: Extension Methods – theburningmonk.com
Viewing all articles
Browse latest Browse all 10

Extension methods to sum IEnumerable(ulong) and IEnumerable(ulong?)

$
0
0
Ever tried to use IEnumerable<T>.Sum on an array of unsigned long integers? Well, you can’t, because the Sum method has not been implemented for ulong or ulong?, so to fill in the gap here’s the extension methods you need using more or less the same code as the existing Sum methods: I used some custom [...]

Viewing all articles
Browse latest Browse all 10

Trending Articles