3 ms·
> Do C# arrays have a Sum method? I don't think so. It's not literally a method (it's not, for instance, in the vtable of some array class), but as far as thei
by nyssos 2y ago
> Do C# arrays have a Sum method? I don't think so.
It's not literally a method (it's not, for instance, in the vtable of some array class), but as far as their API is concerned, yeah, they do: https://github.com/dotnet/runtime/blob/main/src/libraries/System.Linq/src/System/Linq/Sum.cs https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...