Exemple #1
0
        public static void Sample4()
        {
            WriteLine("V1 : ");
            var v1 = new Sample4Version1();

            v1.Prices.Add(1.2);
            v1.Prices.Add(5.3);
            WriteLine(v1.MessageWithTotal);

            WriteLine("V2 : ");
            var v2 = new Sample4Version2();

            v2.Prices.Add(1.2);
            v2.Prices.Add(5.3);
            WriteLine(v2.MessageWithTotal);
        }
Exemple #2
0
 public static void Sample4()
 {
     WriteLine("V1 : ");
     var v1 = new Sample4Version1();
     v1.Prices.Add(1.2);
     v1.Prices.Add(5.3);
     WriteLine(v1.MessageWithTotal);
     
     WriteLine("V2 : ");
     var v2 = new Sample4Version2();
     v2.Prices.Add(1.2);
     v2.Prices.Add(5.3);
     WriteLine(v2.MessageWithTotal);
     
     
 }