The Method converts the temperature in Celcius to Fahrenheit

image_pdfimage_print
   
 

//Microsoft Public License (Ms-PL)
//http://c4fdevkit.codeplex.com/license
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace C4F.DevKit.WebServices
{
    /// <summary>
    /// Provides useful methods like conversion methods.
    /// </summary>
    public static class Utility
    {

        /// <summary>
        /// The Method converts the temperature in Celcius to Fahrenheit
        /// </summary>
        /// <param name="temperature">Temperature in Celcius</param>
        /// <returns>Temperature in Fahrenheit</returns>
        public static double CelciusToFahrenheit(double temperature)
        {
            return (9.0 / 5.0) * temperature + 32;
        }
       
    }
}