Ejemplo n.º 1
0
 public static string AMoneda(this decimal value, int precision)
 {
     return(value >= 0 ? string.Format("{0:C" + precision + "}", value) : value.AMonedaNegativo(precision));
 }
Ejemplo n.º 2
0
 public static string AMoneda(this decimal value)
 {
     return(value >= 0 ? string.Format("{0:C}", value) : value.AMonedaNegativo());
 }