protected void Button1_Click(object sender, EventArgs e) { double CelsiusValue; CelsiusValue = (double.Parse(TextBox_Input.Text) - 32) * 0.5556; Result.InnerText = CelsiusValue.ToString() + " Celsius"; }
public int CompareTo(Temperature other) { return(CelsiusValue.CompareTo(other.CelsiusValue)); }