Ejemplo n.º 1
0
        public static bool operator !=(Celsius c, Fahrenheit f)
        {
            Celsius c1 = (Celsius)f;

            return(c.GetCantidad() != c1.GetCantidad());
        }
Ejemplo n.º 2
0
        public static Celsius operator +(Celsius c, Kelvin k)
        {
            Celsius c1 = (Celsius)k;

            return(new Celsius(c.GetCantidad() + c1.GetCantidad()));
        }
Ejemplo n.º 3
0
        public static bool operator !=(Celsius c, Kelvin k)
        {
            Celsius c1 = (Celsius)k;

            return(c.GetCantidad() != c1.GetCantidad());
        }
Ejemplo n.º 4
0
        public static Celsius operator +(Celsius c, Fahrenheit f)
        {
            Celsius c1 = (Celsius)f;

            return(new Celsius(c.GetCantidad() + c1.GetCantidad()));
        }
Ejemplo n.º 5
0
 public static bool operator ==(Celsius c, Fahrenheit f)
 {
     Celsius c1 = (Celsius)f;
     return c.GetCantidad() == c1.GetCantidad();
 }
Ejemplo n.º 6
0
 public static bool operator ==(Celsius c, Kelvin k)
 {
     Celsius c1 = (Celsius)k;
     return c.GetCantidad() == c1.GetCantidad();
 }