/// <summary> /// Returns a string representation of the given Listing /// </summary> /// <param name="listing"></param> /// <returns>String representation of the given Listing</returns> public static string PrintListingInto(ListedItemDetail listing) { var result = new StringBuilder(); result.AppendFormat("{0}Title = {1}", Environment.NewLine, listing.Title); result.AppendFormat("{0}Desc = {1}", Environment.NewLine, listing.Body); result.AppendFormat("{0}BuyNow = {1}{0}", Environment.NewLine, listing.BuyNowPrice); return result.ToString(); }
/// <summary> /// Returns a string representation of the given Listing /// </summary> /// <param name="listing"></param> /// <returns>String representation of the given Listing</returns> public static string PrintListingInto(ListedItemDetail listing) { var result = new StringBuilder(); result.AppendFormat("{0}Title = {1}", Environment.NewLine, listing.Title); result.AppendFormat("{0}Desc = {1}", Environment.NewLine, listing.Body); result.AppendFormat("{0}BuyNow = {1}{0}", Environment.NewLine, listing.BuyNowPrice); return(result.ToString()); }