public override string ToString() { string str = "{\"ViewPerm\":\"" + ViewPermission.ToString() + "\", \"AddPerm\":\"" + AddPermission.ToString() + "\", \"RemovePerm\":\"" + RemovePermission.ToString() + "\", \"Items\": ["; int count = 0; foreach (Item item in ItemsDictionary.Values) { str += "{" + item.ToString() + "}"; if (count + 1 < ItemsDictionary.Values.Count) { str += ", "; } count++; } str += "] }"; return(str); }
public override string ToString() { return(Name + ";" + Password + ";" + BankVersion.ToString() + ";" + Rank.ToString() + ";" + EventTokens.ToString()); }