/// <summary>Helper method for debugging of IDictionary content, inlcuding type-information. Using this is not performant.</summary> /// <remarks>Should only be used for debugging as necessary.</remarks> /// <param name="origin">Some Dictionary or Hashtable.</param> /// <returns>String of the content of the IDictionary.</returns> public static string ToStringFull(this IDictionary origin) { return(SupportClass.DictionaryToString(origin, false)); }
/// <summary>Returns most interesting room values as string, including custom properties.</summary> /// <returns>Summary of this RoomInfo instance.</returns> public string ToStringFull() { return(string.Format("Room: '{0}' {1},{2} {4}/{3} players.\ncustomProps: {5}", this.name, this.isVisible ? "visible" : "hidden", this.isOpen ? "open" : "closed", this.maxPlayers, this.PlayerCount, SupportClass.DictionaryToString(this.customProperties))); }
/// <summary> /// Brief summary string of the Player. Includes name or player.ID and if it's the Master Client. /// </summary> public override string ToString() { return((string.IsNullOrEmpty(this.NickName) ? this.ActorNumber.ToString() : this.nickName) + " " + SupportClass.DictionaryToString(this.CustomProperties)); }