public override string ToString() { var items = new string[] { Kind, Description, Quantity.ToString(), UnitPrice.ToString(), Amount.ToString(), Taxed.ToString().ToLower(), Taxed2.ToString().ToLower(), "" + ProjectId }; return(string.Join(",", items)); }
/// <summary> /// Method to convert the object to a string by comma seperation. /// </summary> /// <returns>The invoice item as comma seperated string.</returns> public override string ToString() { var items = new string[] { "\"" + Kind + "\"", "\"" + Description + "\"", Quantity.ToString(), UnitPrice.ToString(), Amount.ToString(), Taxed.ToString().ToLower(), Taxed2.ToString().ToLower(), string.Empty + ProjectId }; return(string.Join(",", items)); }