«^»
4.4. Providing a console application that calls ToFahrenheit

So, here is a console application that calls the ToFahrenheit method:

0075: using Console  = System.Console;
0076: using Service1 = ConsoleConvert.Proxy.Service1;
0077: namespace ConsoleConvert
0078: {
0079:     public class Class1
0080:     {
0081:         public static void Main()
0082:         {
0083:             Console.Write("Type in a Centigrade value: ");
0084:             string tCentigradeString = Console.ReadLine();
0085:             double tCentigrade = double.Parse(tCentigradeString);
0086:             Console.WriteLine("Centigrade value is: " + tCentigrade);
0087:             Service1 tService1 = new Service1();
0088:             double tFahrenheit = tService1.ToFahrenheit(tCentigrade);
0089:             Console.WriteLine("Fahrenheit value is: " + tFahrenheit);
0090:         }
0091:     }
0092: }