using System; using System.Linq; public class Test { public static void Main() { Func[] array = new Func[] {MeanAbsoluteValue.Calculate}; double[] args = new[] {1.2, -3.4, 5.6}; double res = array[0](args); Console.WriteLine(res); } } public static class MeanAbsoluteValue{ public static double Calculate(double[] data){ return data.Sum(s => Math.Abs(s)) / data.Length; } }