Esempio n. 1
0
 public void WineToWater( Wine liquid )
 {
     Water water = liquid;
      Console.Write( "Performing Miracle on: " );
      Console.WriteLine( liquid );
      Console.Write( "Liquid is now: " );
      Console.WriteLine( water );
 }
Esempio n. 2
0
        private void SecondComming()
        {
            Jesus christ = new Jesus();
             Wine wine = new Wine(WineType.bordeaux) {NumberOfLiters = 22, TempInCelcius = 22};
             Water water = new Water(WaterType.sewer) {NumberOfLiters = 20, TempInCelcius = 14};
             christ.WaterToWine(water);
             Console.WriteLine();
             christ.WineToWater( wine );
             Console.WriteLine();

             Water someWater = 3;
             Water someMoreWater = WaterType.salt;

             Console.WriteLine(someWater);
             Console.WriteLine(someMoreWater);
        }