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