Esempio n. 1
0
 public override string ToString()
 {
     return
         ($"[{Id}] {Name ?? "---"} {(DateOfBirth != null ? DateOfBirth.ToString() : "---")} {Age.ToString() ?? "---"} " +
          $"[{string.Join(",", Awards.ConvertAll(a => $"{a.Id} {a.Title}"))}]");
 }
Esempio n. 2
0
 /// <summary>
 /// Override of ToString in order to get information needed.
 /// </summary>
 /// <returns>string</returns>
 public override string ToString()
 {
     return(Id.ToString() + NickName.ToString() + Age.ToString() + Role.ToString() + TeamId.ToString());
 }