public string Dump() { StringBuilder sb = new StringBuilder(); int count = this.users.Length; for (int i = 0; i < count; i++) { MatchUser user = this.users[i]; sb.Append(user == null ? $"{i}:null" : $"{i}:{user.Dump()}"); if (i < count - 1) { sb.AppendLine(); } } return(sb.ToString()); }
public override string ToString() { StringBuilder sb = new StringBuilder(); int count = this._users.Length; for (int i = 0; i < count; i++) { MatchUser user = this._users[i]; if (user == null) { continue; } sb.Append($"{i}:{user.Dump()}"); if (i < count - 1) { sb.AppendLine(); } } return(sb.ToString()); }