public override string ToString() { return ($"[{Id}] {Name ?? "---"} {(DateOfBirth != null ? DateOfBirth.ToString() : "---")} {Age.ToString() ?? "---"} " + $"[{string.Join(",", Awards.ConvertAll(a => $"{a.Id} {a.Title}"))}]"); }
/// <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()); }