public string MostrarDescripcionBreve() { StringBuilder sb = new StringBuilder(); if (!(this is null)) { sb.AppendFormat("{0} - {1} - {###,##}\n", Fecha, producto.ToString(), precioFinal); } return(sb.ToString()); }
public override int CompareTo(object obj) { if (obj is Banco) { Banco oVar = obj as Banco; return(String.Compare(this.ToString(), oVar.ToString(), true)); } else if (obj is string) { return(String.Compare(this.ToString(), obj as string)); } else { return(-1); } }