I\'ve implemented a custom IEqualityComparer for EventLogEntry.
public class EventLogEntryListComparison :
IEqualityComparer
LINQ's Enumerable.Sum(...)
methods perform the additions inside a checked
block. This means that they deliberately throw an exception if the sum overflows.
Your sum is not inside a checked
block, so whether or not it throws an exception depends on... whether it is called from inside a checked
block, or a property on the assembly I believe.