コード例 #1
0
        /// <summary>
        /// Method to convert the object to a string by comma separation.
        /// </summary>
        /// <returns>The invoice item as comma separated 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));
        }
コード例 #2
0
        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));
        }