System\Linq\Average.cs (5)
122public static double? Average(this IEnumerable<int?> source) => Average<int, long, double>(source);
124public static double? Average(this IEnumerable<long?> source) => Average<long, long, double>(source);
126public static float? Average(this IEnumerable<float?> source) => Average<float, double, double>(source) is double result ? (float)result : null;
128public static double? Average(this IEnumerable<double?> source) => Average<double, double, double>(source);
130public static decimal? Average(this IEnumerable<decimal?> source) => Average<decimal, decimal, decimal>(source);