コード例 #1
0
        /// <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();
        }
コード例 #2
0
        /// <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());
        }