Exemple #1
0
        static void Main()
        {
            MyData md = new MyData(3, 4, 5);

            Console.WriteLine("Average: {0}", ExtendMyData.Average(md));
        }
Exemple #2
0
 public static double Average(MyData md)
 {
     return(md.Sum() / 3);
 }