static void Main() { MyData md = new MyData(3, 4, 5); Console.WriteLine("Average: {0}", ExtendMyData.Average(md)); }
public static double Average(MyData md) { return(md.Sum() / 3); }