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

            return(aux);
        }
Beispiel #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()));
        }
Beispiel #3
0
        public static Dolar operator +(Dolar d, Peso p)
        {
            Dolar aux = new Dolar(d.cantidad + p.getCantidad());

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

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

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

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

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

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

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

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

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

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

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

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

            return(aux);
        }
        public static bool operator ==(Dolar d, Euro e)
        {
            Dolar retorno = (Dolar)e;

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

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

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

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

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

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

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

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

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

            return(dolar2);
        }