Beispiel #1
0
        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);
        }
Beispiel #2
0
 public override string ToString()
 {
     return(Name + ";" + Password + ";" + BankVersion.ToString() + ";" + Rank.ToString() + ";" + EventTokens.ToString());
 }