Exemple #1
0
        public static bool operator ==(Fahrenheit f, Celsius c)
        {
            Fahrenheit f1 = (Fahrenheit)c;

            return(f.GetCantidad() == f1.GetCantidad());
        }
Exemple #2
0
        public static bool operator !=(Fahrenheit f, Kelvin k)
        {
            Fahrenheit f1 = (Fahrenheit)k;

            return(f.GetCantidad() != f1.GetCantidad());
        }
Exemple #3
0
        public static Fahrenheit operator +(Fahrenheit f, Kelvin k)
        {
            Fahrenheit f1 = (Fahrenheit)k;

            return(new Fahrenheit(f.GetCantidad() + f1.GetCantidad()));
        }
Exemple #4
0
        public static Fahrenheit operator +(Fahrenheit f, Celsius c)
        {
            Fahrenheit f1 = (Fahrenheit)c;

            return(new Fahrenheit(f.GetCantidad() + f1.GetCantidad()));
        }