String concatenation with extra variables in C#

This blog shows on how to do a string concatenation with an extra variable

class CurrencyClass
    {
        public long Dollars;
        public byte Cents;

        public override string ToString()
        {
            return "$" + Dollars + "." + Cents;
        }
    }
Ebook Download
View all
Learn
View all