Computes an average for all values in an enumerable, ensuring they can be converted to double (using a DoubleConverter).
public static double AverageChecked<T>(this IEnumerable<T> src, bool ignoreErrors = false)
where T : IConvertible| parameter | description |
|---|---|
| T | Items type |
| src | Source enumeration |
| ignoreErrors | Specify whether errors are blocking |
The computed average
- class EnumerableExtensions
- namespace Wokhan.Collections.Generic.Extensions