static void Test_ConvertTo() { var from = new Cup(); var becomes = from.ConvertTo(new CubicCentimeter()); Console.WriteLine(becomes.Quantity.ToString() + " : " + becomes.Volume.ToString()); Console.ReadLine(); }
static void Test_ConvertTo() { var from = new Cup(); var becomes = from.ConvertTo(new CubicCentimeter()); Console.WriteLine(becomes.Quantity.ToString() + " : " + becomes.Volume.ToString()); Console.ReadLine(); }