public static double Average(this MyData md) { return(md.Sum() / 3); }
public void Demo15() { MyData md = new MyData(1, 4, 2); Console.WriteLine(md.Average()); }