예제 #1
0
        static void Main(string[] args)
        {
            Fahrenheit f = new Fahrenheit(98.6F);
            DisplayTemp(f);

            Celsius c = new Celsius(0F);
            DisplayTemp(c);

            Console.ReadLine();
        }
예제 #2
0
 public static void DisplayTemp(Fahrenheit Temp)
 {
     Console.Write("Conversion of {0} {1} to Celsius = ",
         Temp.ToString(), Temp.Temp);
     Console.WriteLine("(Celsius)Temp");
 }