コード例 #1
0
        public override string ToString()
        {
            StringBuilder toString = new StringBuilder();

            toString.AppendLine(base.ToString());
            toString.AppendLine(m_CarProperties.ToString());

            return(toString.ToString());
        }
コード例 #2
0
        public override string ToString()
        {
            string electricCarInfo = base.ToString() + Environment.NewLine + m_CarProperties.ToString();

            return(electricCarInfo);
        }