public static double AverageAge(Animal[] arr) { return arr.Average(x => x.Age); }
public static decimal AverageAge(Animal[] arr) { return arr.Average(x => (decimal) x.Age); }
public static double AverageAge(Animal[] arr) { return arr.Average(x => x.Age); }
public static decimal AverageAge(Animal[] arr) { return arr.Average(x => (decimal) x.Age); }