public void Visit(PermissionInfo contain, PermissionInfo contained) { int index = pc.Index(contain); if (index != -1) { if (contain.Contains(lp.Left)) bits[leftmask] = true;//设置左权限 else if (contain.Contains(lp.Right)) bits[rightmask] = true;//设置右权限 } }