Esempio n. 1
0
        public static Dolar operator -(Dolar d, Euro e)
        {
            Dolar aux = new Dolar((d.cantidad - e.GetCantidad()));

            return(aux);
        }
Esempio n. 2
0
        public static Pesos operator +(Pesos p, Euro e)
        {
            Dolar d = new Dolar(e.GetCantidad() / Euro.GetCotizacion());

            return(new Pesos(p.cantidad + ((Pesos)d).GetCantidad()));
        }
Esempio n. 3
0
        public static Dolar operator +(Dolar d, Peso p)
        {
            Dolar aux = new Dolar(d.cantidad + p.getCantidad());

            return(aux);
        }
Esempio n. 4
0
 //EURO == DOLAR
 public static bool operator ==(Euro e, Dolar d)
 {
     return(d.GetCantidad() == Dolar.ConvertToDolar(e));
 }
Esempio n. 5
0
        public static Euro operator +(Euro e, Dolar d)
        {
            Euro aux = new Euro((Dolar.ConvertToDolar(e) + d.GetCantidad()) * Euro.GetCotizacion());

            return(aux);
        }
Esempio n. 6
0
        public static Dolar operator -(Dolar d, Pesos p)
        {
            Dolar retorno = new Dolar(d.GetCantidad() - ((Dolar)p).GetCantidad());

            return(retorno);
        }
Esempio n. 7
0
        public static bool operator ==(Dolar d, Euro e)
        {
            Dolar dAux = (Dolar)e;

            return(d.GetCantidad() == dAux.GetCantidad());
        }
Esempio n. 8
0
        public static Dolar operator -(Dolar d, Euro e)
        {
            Dolar retorno = new Dolar(d.cantidad - ((Dolar)e).cantidad);

            return(retorno);
        }
Esempio n. 9
0
        public static Dolar operator -(Dolar d, Peso p)
        {
            Dolar retorno = new Dolar(d.cantidad - ((Dolar)p).cantidad);

            return(retorno);
        }
Esempio n. 10
0
        public static Pesos operator +(Pesos p, Dolar d)
        {
            Pesos aux = new Pesos((Dolar.ConvertToDolar(p) + d.GetCantidad()) * Pesos.GetCotizacion());

            return(aux);
        }
Esempio n. 11
0
        public static Pesos operator +(Pesos p, Euro e)
        {
            Pesos aux = new Pesos((Dolar.ConvertToDolar(e) + Dolar.ConvertToDolar(p)) * Pesos.GetCotizacion());

            return(aux);
        }
Esempio n. 12
0
 // PESOS == EURO
 public static bool operator ==(Pesos p, Euro e)
 {
     return(Dolar.ConvertToDolar(p) == Dolar.ConvertToDolar(e));
 }
Esempio n. 13
0
 //PESOS == DOLAR
 public static bool operator ==(Pesos p, Dolar d)
 {
     return(d.GetCantidad() == Dolar.ConvertToDolar(p));
 }
Esempio n. 14
0
        public static Dolar operator -(Dolar d, Pesos p)
        {
            Dolar aux = new Dolar((d.cantidad - p.GetCantidad()));

            return(aux);
        }
Esempio n. 15
0
        public static Dolar operator -(Dolar d, Euro e)
        {
            Dolar aux = new Dolar(d.cantidad - ((Dolar)e).cantidad);

            return(aux);
        }
Esempio n. 16
0
        public static Dolar operator -(Dolar d, Euro e)
        {
            Dolar aux = new Dolar(d.GetCantidad() - ConvertToDolar(e));

            return(aux);
        }
Esempio n. 17
0
        public static Dolar operator -(Dolar d, Euro e)
        {
            Dolar retorno = new Dolar(d.GetCantidad() - ((Dolar)e).GetCantidad());

            return(retorno);
        }
Esempio n. 18
0
        public static Dolar operator -(Dolar d, Pesos p)
        {
            Dolar aux = new Dolar(d.GetCantidad() - ConvertToDolar(p));

            return(aux);
        }
Esempio n. 19
0
        public static bool operator ==(Dolar d, Euro e)
        {
            Dolar retorno = (Dolar)e;

            return((float)d.GetCantidad() == retorno.GetCantidad());
        }
Esempio n. 20
0
 public static Pesos operator -(Pesos p, Dolar d)
 {
     return(new Pesos(p.cantidad - (d.GetCantidad() * Dolar.GetCotizacion())));
 }
Esempio n. 21
0
        public static bool operator==(Dolar d, Pesos p)
        {
            Dolar dAux = (Dolar)p;

            return(d.GetCantidad() == dAux.GetCantidad());
        }
Esempio n. 22
0
        public static Dolar operator +(Dolar d, Euro e)
        {
            Dolar dolar = new Dolar(d.GetCantidad() + ((Dolar)e).GetCantidad());

            return(dolar);
        }
Esempio n. 23
0
 //EURO == PESOS
 public static bool operator ==(Euro e, Pesos p)
 {
     return(Dolar.ConvertToDolar(e) == Dolar.ConvertToDolar(p));
 }
Esempio n. 24
0
        public static Dolar operator -(Dolar d, Peso p)
        {
            Dolar dolar = new Dolar(d.GetCantidad() - ((Dolar)p).GetCantidad());

            return(dolar);
        }
Esempio n. 25
0
        public static Euro operator +(Euro e, Pesos p)
        {
            Euro aux = new Euro((Dolar.ConvertToDolar(e) + Dolar.ConvertToDolar(p)) * Euro.GetCotizacion());

            return(aux);
        }
Esempio n. 26
0
        public static Euro operator +(Euro e, Dolar d)
        {
            Dolar d2 = (Dolar)(e);

            return((Euro)(new Dolar(d.GetCantidad() + d2.GetCantidad())));
        }
Esempio n. 27
0
        public static Dolar operator +(Dolar d, Euro e)
        {
            Dolar aux = new Dolar(d.cantidad + e.getCantidad());

            return(aux);
        }
Esempio n. 28
0
        public static Dolar operator -(Dolar d, Pesos p)
        {
            Dolar aux = new Dolar(d.cantidad - ((Dolar)p).cantidad);

            return(aux);
        }
Esempio n. 29
0
        public static Dolar operator -(Dolar d, Euro e)
        {
            Dolar d2 = (Dolar)(e);

            return(new Dolar(d.GetCantidad() - d2.GetCantidad()));
        }
Esempio n. 30
0
        public static Dolar operator -(Dolar dolar1, Peso peso1)
        {
            Dolar dolar2 = new Dolar(dolar1._cantidad - ((Dolar)peso1)._cantidad);

            return(dolar2);
        }