Esempio n. 1
0
 public override string ToString()
 {
     return(new StringBuilder()
            .Append("Dept ID: ")
            .AppendLine(DepartmentId.ToString())
            .Append("Dept Name: ")
            .AppendLine(DepartmentName)
            .ToString());
 }
Esempio n. 2
0
 public override string ToString()
 {
     return(CourseId + ": " + (Department is null ? DepartmentId.ToString() : Department.DepartmentCode) + " " + CourseNumber);
 }