Beispiel #1
0
        public static Euro operator +(Euro e, Dolar d)
        {
            Euro aux = new Euro((Dolar.ConvertToDolar(e) + d.GetCantidad()) * Euro.GetCotizacion());

            return(aux);
        }
Beispiel #2
0
 //EURO == DOLAR
 public static bool operator ==(Euro e, Dolar d)
 {
     return(d.GetCantidad() == Dolar.ConvertToDolar(e));
 }
Beispiel #3
0
 //EURO == PESOS
 public static bool operator ==(Euro e, Pesos p)
 {
     return(Dolar.ConvertToDolar(e) == Dolar.ConvertToDolar(p));
 }
Beispiel #4
0
        public static Euro operator -(Euro e, Pesos p)
        {
            Euro aux = new Euro((Dolar.ConvertToDolar(e) - Dolar.ConvertToDolar(p)) * Euro.GetCotizacion());

            return(aux);
        }
Beispiel #5
0
        public static Pesos operator +(Pesos p, Dolar d)
        {
            Pesos aux = new Pesos((Dolar.ConvertToDolar(p) + d.GetCantidad()) * Pesos.GetCotizacion());

            return(aux);
        }
Beispiel #6
0
 // PESOS == EURO
 public static bool operator ==(Pesos p, Euro e)
 {
     return(Dolar.ConvertToDolar(p) == Dolar.ConvertToDolar(e));
 }
Beispiel #7
0
 //PESOS == DOLAR
 public static bool operator ==(Pesos p, Dolar d)
 {
     return(d.GetCantidad() == Dolar.ConvertToDolar(p));
 }
Beispiel #8
0
        public static Pesos operator -(Pesos p, Euro e)
        {
            Pesos aux = new Pesos((Dolar.ConvertToDolar(p) - Dolar.ConvertToDolar(e)) * Pesos.GetCotizacion());

            return(aux);
        }