示例#1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="group"></param>
 private PrivilegeGroup(PrivilegeGroup group)
 {
     this.m_privileges = new List<Privilege>();
     foreach (Privilege privilege in group.Privileges)
     {
         this.m_privileges.Add(privilege.Clone());
     }
 }
示例#2
0
 /// <summary>
 /// 根据合并规则对指定权限组进行合并
 /// </summary>
 /// <param name="group"></param>
 internal void Merge(PrivilegeGroup group)
 {
     foreach (Privilege privilege in group.Privileges)
     {
         this.Merge(privilege);
     }
 }