コード例 #1
0
 public void CopyFrom(Permissions other)
 {
     Modules.Clear();
     foreach (var mp in other.Modules)
     {
         Modules.AddOrUpdate(mp.Key, mp.Value, (s, b) => mp.Value);
     }
     Commands.Clear();
     foreach (var cp in other.Commands)
     {
         Commands.AddOrUpdate(cp.Key, cp.Value, (s, b) => cp.Value);
     }
     FilterInvites = other.FilterInvites;
     FilterWords   = other.FilterWords;
 }