Example #1
0
        public override string ToString()
        {
            StringBuilder retorno = new StringBuilder();

            retorno.AppendFormat($"CLASE DE: {this.clase} POR {instructor.ToString()}");
            retorno.AppendLine("ALUMNOS: ");
            foreach (Alumno alumno in this.alumnos)
            {
                retorno.AppendLine(alumno.ToString());
            }
            return(retorno.ToString());
        }
Example #2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Clase de " + clase.ToString() + " Por " + instructor.ToString());
            sb.AppendLine("Alumnos:");
            foreach (Alumno item in this.alumnos)
            {
                sb.AppendLine(item.ToString());
            }
            return(sb.ToString());
        }
Example #3
0
        public new string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendFormat("CLASE DE {0} POR {1}", clase.ToString(), instructor.ToString());
            sb.AppendLine("ALUMNOS:");
            foreach (Alumno alumno in this.alumnos)
            {
                sb.AppendLine(alumno.ToString());
            }
            return(sb.ToString());
        }
Example #4
0
        /// <summary>
        /// Muestra todos los datos de la Jornada
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("<------------------------------------------------------------>");
            sb.AppendLine(string.Format("CLASE DE {0} POR {1}", this._clase, _instructor.ToString()));
            sb.AppendLine("ALUMNOS:");
            foreach (Alumno alum in this._alumnos)
            {
                sb.AppendLine(alum.ToString());
            }
            return(sb.ToString());
        }
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendFormat("JORNADA:\nCLASE DE: {0} por {1}\n\n", this._clase, instructor.ToString());
            sb.AppendLine("AUMNOS:");
            foreach (Alumno aux in this.Alumnos)
            {
                sb.AppendLine(aux.ToString());
            }
            sb.AppendLine("<--------------------------------------------------->");
            return(sb.ToString());
        }
Example #6
0
        /// <summary>
        /// sobrecarga del metodo ToString
        /// </summary>
        /// <returns>retorna la informacion de la jornada</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append($"CLASE DE {this.clase.ToString()} POR ");
            sb.Append(instructor.ToString());
            sb.AppendLine("ALUMNOS: ");
            foreach (Alumno item in this.alumnos)
            {
                sb.AppendLine(item.ToString());
            }
            sb.AppendLine("<----------------------------------------------->");
            return(sb.ToString());
        }