Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 708 Bytes

File metadata and controls

25 lines (17 loc) · 708 Bytes

EnumerableExtensions.AverageChecked<T> method

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

Return Value

The computed average

See Also