/// <summary>
 /// Copies the values in the current object into the SettingsDictionary passed as the target
 /// </summary>
 /// <param name="target">The target to recieve the values from this SettingsDictionary</param>
 public void Clone(SettingsDictionary target)
 {
     foreach (string key in this.orderedKeys)
     {
         target.addSetting(key, this.grabSetting(key));
     }
 }
 // Token: 0x060000AE RID: 174 RVA: 0x00006BD4 File Offset: 0x00005BD4
 public void Clone(SettingsDictionary target)
 {
     foreach (string name in this.orderedKeys)
     {
         target.addSetting(name, this.grabSetting(name));
     }
 }
Beispiel #3
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="UserID">The GUID of the user</param>
 /// <param name="bot">the bot the user is connected to</param>
 public User(string UserID, Bot bot)
 {
     if (UserID.Length > 0)
     {
         id         = UserID;
         this.bot   = bot;
         Predicates = new Utils.SettingsDictionary(this.bot);
         this.bot.DefaultPredicates.Clone(Predicates);
         Predicates.addSetting("topic", "*");
     }
     else
     {
         throw new Exception("The UserID cannot be empty");
     }
 }
 /// <summary>
 /// Copies the values in the current object into the SettingsDictionary passed as the target
 /// </summary>
 /// <param name="target">The target to recieve the values from this SettingsDictionary</param>
 public void Clone(SettingsDictionary target)
 {
     foreach (string key in this.orderedKeys)
     {
         target.addSetting(key, this.grabSetting(key));
     }
 }